/* =====================
   Base
   ===================== */
body {
    background: #fff;
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* =====================
   Header
   ===================== */
.site-header {
    background: #f9f5dc;
    padding: 2.5rem 3rem 2.25rem;
    textAlign: center;
    text-align: center;
    position: relative;
}

.header-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff5d24;
}

.site-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.header-sub {
    color: #7a6a48;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.logo-icon {
    height: 88px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* =====================
   Main Content
   ===================== */
.main-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    box-sizing: border-box;
}

/* =====================
   Features Grid
   ===================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ff5d24;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.feature-icon-wrap .fas {
    color: #fff;
    font-size: 1.1rem;
}

.feature-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.feature-sub {
    font-size: 0.78rem;
    color: #999;
}

/* =====================
   Divider
   ===================== */
.section-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0 0 2.25rem;
}

/* =====================
   Form
   ===================== */
.isbn-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-group-wrap {
    margin-bottom: 1.25rem;
}

.isbn-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.isbn-label .fas {
    color: #ff5d24;
}

.isbn-input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #1a1a1a;
    outline: none;
    background: #fff;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.isbn-input:focus {
    border-color: #ff5d24;
    box-shadow: 0 0 0 3px rgba(255, 93, 36, 0.15);
}

.isbn-hint {
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.4rem;
}

.required-star {
    color: #e03a1e;
    font-weight: 700;
}

/* =====================
   Buttons
   ===================== */
.btn-generate {
    background: #ff5d24;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(255, 93, 36, 0.4);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-generate:hover {
    background: #ea3323;
    box-shadow: 0 8px 24px rgba(255, 93, 36, 0.45);
    transform: translateY(-1px);
}

.btn-generate .fas {
    color: #fff;
}

.btn-download {
    background: #2a9d5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(42, 157, 92, 0.35);
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-download:hover {
    background: #228a4d;
    color: #fff;
    transform: translateY(-1px);
}

.btn-download .fas {
    color: #fff;
}

/* =====================
   Barcode Preview
   ===================== */
.barcode-preview {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
}

.barcode-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: inline-block;
    max-width: 100%;
}

.barcode-image {
    max-width: 100%;
    height: auto;
    background: white;
}

/* =====================
   Instructions
   ===================== */
.instructions-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

.instructions-header {
    background: #ff5d24;
    padding: 0.8rem 1.25rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.instructions-header .fas {
    color: #fff;
}

.instructions-body {
    padding: 1.1rem 1.25rem;
    background: #fafafa;
}

.req-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: #333;
}

.req-item .fas {
    color: #2a9d5c;
    font-size: 0.85rem;
}

/* =====================
   Footer
   ===================== */
.site-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.78rem;
    color: #bbb;
}

.site-footer a {
    color: #ff5d24;
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =====================
   Alerts
   ===================== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .site-header {
        padding: 2rem 1.5rem 2rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-generate,
    .btn-download {
        width: 100%;
        justify-content: center;
        margin: 0.4rem 0 0 !important;
    }

    .isbn-form {
        max-width: 100%;
    }
}
