/* ============ REGALA PIANA LA GATTA - GIFT VOUCHER ============ */

.gift-hero {
    background: linear-gradient(135deg, #1a2740 0%, #2c3e50 100%);
    color: #fff;
    padding: 70px 20px 60px;
    text-align: center;
}

.gift-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.gift-hero p {
    color: #c8b78a;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.gift-alert {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.gift-alert-box {
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-alert-box.error { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c0; }
.gift-alert-box.warning { background: #fff8e1; color: #8a6100; border: 1px solid #f0d98c; }
.gift-alert-box.success { background: #eaf7ee; color: #1e7a34; border: 1px solid #b7e2c3; }

.gift-types {
    max-width: 1000px;
    margin: 50px auto 30px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gift-type-card {
    background: #fff;
    border: 2px solid #ece6d8;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.gift-type-card:hover { transform: translateY(-3px); }

.gift-type-card.selected {
    border-color: #c8b78a;
    box-shadow: 0 6px 18px rgba(200,183,138,.3);
}

.gift-type-card h3 {
    font-family: "Playfair Display", serif;
    color: #1a2740;
    margin: 10px 0 6px;
    font-size: 1.2rem;
}

.gift-type-card .gift-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #8a5a3b;
}

.gift-form-section {
    max-width: 720px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.gift-form-card {
    background: #fdf9f3;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.gift-form-card h2 {
    font-family: "Playfair Display", serif;
    color: #1a2740;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.gift-form-card label {
    font-weight: 600;
    font-size: .85rem;
    color: #5a4a3a;
    margin-bottom: 4px;
    display: block;
}

.gift-form-card .form-control, .gift-form-card select {
    border-radius: 8px;
    border: 1px solid #ded4c0;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.gift-delivery-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.gift-delivery-option {
    flex: 1;
    border: 2px solid #ece6d8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
}

.gift-delivery-option.selected {
    border-color: #1a2740;
    background: #fff;
}

.gift-shipping-fields { display: none; }
.gift-shipping-fields.visible { display: block; }

.gift-total-box {
    background: #1a2740;
    color: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.gift-total-box .gift-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c8b78a;
}

.gift-submit-btn {
    background: #1a2740;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: 700;
    letter-spacing: .5px;
    width: 100%;
    transition: background .2s;
}

.gift-submit-btn:hover { background: #2c3e50; }

/* Card promo home */
.gift-promo-card {
    background: linear-gradient(135deg, #1a2740 0%, #2c3e50 100%);
    border-radius: 20px;
    padding: 40px 32px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gift-promo-card .gift-promo-text h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.gift-promo-card .gift-promo-text p {
    color: #d9d2c0;
    font-size: .95rem;
    max-width: 480px;
}

.gift-promo-card .gift-promo-cta {
    background: #c8b78a;
    color: #1a2740;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}

.gift-promo-card .gift-promo-cta:hover { background: #ddcda0; color: #1a2740; }

/* Confirmation page */
.gift-confirmation {
    max-width: 640px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.gift-confirmation .gift-code {
    font-family: monospace;
    font-size: 1.3rem;
    background: #fdf9f3;
    border: 2px dashed #c8b78a;
    border-radius: 10px;
    padding: 14px 20px;
    display: inline-block;
    margin: 20px 0;
    color: #1a2740;
    font-weight: 700;
}

/* Card promo home - responsive mobile */
@media (max-width: 768px) {
    .gift-promo-card {
        padding: 12px 16px;
        border-radius: 40px;
        gap: 10px;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .gift-promo-card .gift-promo-text h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    /* Su mobile nascondiamo il testo descrittivo: troppo lungo e crea confusione */
    .gift-promo-card .gift-promo-text p {
        display: none;
    }

    .gift-promo-card .gift-promo-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .gift-promo-card {
        padding: 10px 14px;
        border-radius: 40px;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .gift-promo-card .gift-promo-text h3 {
        font-size: 0.85rem;
    }

    .gift-promo-card .gift-promo-cta {
        width: auto;
        text-align: center;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}
