/* ===================================
   GIFT CARD PAGE STYLES
   Jassistays - Authentic Moroccan Hospitality
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: url('../../assets/images/gift-cart/best-beaches-in-morocco.webp') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.85), rgba(139, 115, 85, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Gift Card Section */
.gift-card-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8f6f4, #ffffff);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Gift Cards Grid */
.gift-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gift-card-item {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.gift-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.05), rgba(139, 115, 85, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gift-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(193, 121, 86, 0.2);
}

.gift-card-item:hover::before {
    opacity: 1;
}

.gift-card-item.selected {
    border-color: #C17956;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.08), rgba(139, 115, 85, 0.08));
}

.gift-card-item.popular {
    border-color: #D4A574;
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #C17956, #8B7355);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gift-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #C17956, #8B7355);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.gift-card-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #C17956;
    margin-bottom: 1rem;
}

.gift-card-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.gift-card-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.gift-card-features li {
    font-size: 0.9rem;
    color: #555;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.gift-card-features li:last-child {
    border-bottom: 1px solid #eee;
}

.gift-card-features i {
    color: #C17956;
    margin-right: 0.5rem;
}

.btn-select-card {
    padding: 1rem 2rem;
    background: white;
    color: #C17956;
    border: 2px solid #C17956;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-select-card:hover {
    background: #C17956;
    color: white;
}

.gift-card-item.selected .btn-select-card {
    background: #C17956;
    color: white;
}

/* Custom Amount */
.custom-amount-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.custom-amount-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.custom-amount-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f6f4;
    padding: 1rem;
    border-radius: 50px;
}

.custom-amount-input .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C17956;
    padding-left: 1rem;
}

.custom-amount-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    padding: 0.5rem;
    outline: none;
}

.custom-amount-input input::placeholder {
    color: #999;
}

.btn-add-custom {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #C17956, #8B7355);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(193, 121, 86, 0.3);
}

/* Personalization Section */
.personalization-section {
    padding: 6rem 0;
    background: white;
}

.personalization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.personalization-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C17956;
    box-shadow: 0 0 0 3px rgba(193, 121, 86, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.delivery-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.scheduled-date-input {
    margin-top: 1rem;
}

.form-summary {
    background: linear-gradient(135deg, #f8f6f4, #f0ece8);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.125rem;
}

.summary-row.total {
    border-top: 2px solid #C17956;
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #C17956;
}

.summary-amount,
.summary-total {
    font-weight: 700;
    color: #C17956;
}

.btn-purchase {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #C17956, #8B7355);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 121, 86, 0.3);
}

.btn-purchase i {
    font-size: 1.25rem;
}

/* Gift Card Preview */
.personalization-preview {
    position: sticky;
    top: 100px;
}

.gift-card-preview {
    background: linear-gradient(135deg, #C17956, #8B7355);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(193, 121, 86, 0.3);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.1;
}

.moroccan-pattern {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.3) 10px,
        rgba(255, 255, 255, 0.3) 20px
    );
}

.preview-content {
    position: relative;
    z-index: 1;
}

.preview-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.preview-amount {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin: 2rem 0;
}

.preview-recipient {
    margin: 3rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-recipient p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.preview-recipient h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
}

.preview-message {
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    margin: 2rem 0;
    min-height: 60px;
}

.preview-sender {
    margin-top: 2rem;
}

.preview-sender p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.preview-sender span {
    font-weight: 600;
    font-size: 1.125rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8f6f4);
}

.how-it-works-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C17956, #8B7355);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(193, 121, 86, 0.3);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 2rem auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #C17956;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.step-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: white;
}

.benefits-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: #f8f6f4;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #C17956, #8B7355);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8f6f4, #ffffff);
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 4rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f6f4;
}

.faq-question i {
    color: #C17956;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #C17956, #8B7355);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.25rem 3rem;
    background: white;
    color: #C17956;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .personalization-content {
        grid-template-columns: 1fr;
    }

    .personalization-preview {
        position: static;
        margin-top: 3rem;
    }

    .gift-card-preview {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2,
    .how-it-works-section h2,
    .benefits-section h2,
    .faq-section h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .gift-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .custom-amount-input {
        flex-direction: column;
    }

    .btn-add-custom {
        width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .delivery-options {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta {
        justify-content: center;
    }

    .gift-card-preview {
        padding: 2rem;
        min-height: 350px;
    }

    .preview-amount {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .gift-card-section,
    .personalization-section,
    .how-it-works-section,
    .benefits-section,
    .faq-section,
    .cta-section {
        padding: 3rem 0;
    }

    .custom-amount-section {
        padding: 2rem;
    }

    .form-summary {
        padding: 1.5rem;
    }
}
