*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rose: #e8a5b0;
    --rose-dark: #c9758a;
    --rose-light: #f7dde2;
    --cream: #faf5ed;
    --ivory: #f0e8d8;
    --gold: #b8966a;
    --gold-light: #d4b483;
    --gold-dark: #8a6d3b;
    --green: #7a8c6e;
    --text: #3d2e22;
    --text-light: #7a6555;
    --white: #fffdf9;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    padding: 2rem;
    display: flex;
    justify-content: center;
    background-image: url('../images/nostalgia_bouquet.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 245, 237, 0.85);
    /* cream with opacity */
    z-index: -1;
}

.container {
    background: var(--white);
    max-width: 900px;
    width: 100%;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(184, 150, 106, 0.3);
}

/* ── HEADER ── */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gold-light);
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 600px) {
    .header {
        grid-template-columns: 1fr;
    }

    .badge-left,
    .img-right {
        display: none;
    }
}

.badge-left {
    background: var(--rose-dark);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(201, 117, 138, 0.3);
}

.header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.header-content h2 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.header-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.img-right img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gold-light);
}

/* ── CUSTOMER INFO ── */
.form-section {
    margin-bottom: 2rem;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    text-align: center;
    text-decoration: underline;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.input-group label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    white-space: nowrap;
}

.input-group input {
    flex-grow: 1;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid var(--text-light);
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

.input-group input:focus {
    border-bottom-color: var(--gold-dark);
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
    background: var(--ivory);
    padding: 1rem;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

/* ── PRODUCTS TABLE ── */
.product-list {
    margin-bottom: 2.5rem;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--gold-light);
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-size: 1.05rem;
    line-height: 1.4;
}

.product-name strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--brown);
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    white-space: nowrap;
}

.product-order {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.product-order input {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid var(--gold-light);
    border-radius: 4px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

/* ── PAYMENT & SIGNATURE ── */
.payment-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.signature-box {
    text-align: center;
}

.sig-line {
    width: 100%;
    height: 1px;
    background: var(--text-light);
    margin-bottom: 0.5rem;
}

.sig-name {
    font-weight: 700;
    color: var(--text);
}

.print-btn {
    display: block;
    width: 200px;
    margin: 3rem auto 0;
    padding: 1rem;
    background: var(--gold-dark);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.print-btn:hover {
    background: var(--brown);
}

@media print {
    body {
        background: none;
        padding: 0;
    }

    body::before {
        display: none;
    }

    .container {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .print-btn {
        display: none;
    }

    .header {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .product-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .product-price {
        text-align: left;
    }

    .signatures {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 1.5rem;
    }
}