/* ===================================
   CONTACT PAGE STYLES
   Jassistays - Authentic Moroccan Hospitality
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    background-image: url('../../assets/images/contact/photo-1541746972996-4e0b0f43e02a.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Section Header */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group .required {
    color: #C17956;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C17956;
    box-shadow: 0 0 0 4px rgba(193, 121, 86, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(193, 121, 86, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 16px;
    animation: fadeInScale 0.5s ease-out;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.form-success p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Contact Info Container */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-info-card .info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-icon i {
    font-size: 1.75rem;
    color: white;
}

.contact-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.contact-info-card .info-content {
    color: #666;
    line-height: 1.8;
}

.contact-info-card .info-content a {
    color: #C17956;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card .info-content a:hover {
    color: #8B7355;
}

.contact-info-card .info-hours {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

/* WhatsApp Card */
.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.whatsapp-card h3,
.whatsapp-card .info-content,
.whatsapp-card .info-content p {
    color: white;
}

.whatsapp-card .info-icon {
    background: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #25D366;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp i {
    font-size: 1.25rem;
}

/* Social Card */
.social-card .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-card .social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card .social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(193, 121, 86, 0.3);
}

.social-card .social-links a i {
    font-size: 1.1rem;
}

/* Map Section */
.map-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
}

.map-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.map-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
}

.map-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 121, 86, 0.3);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #C17956;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-overlay {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
    }

    .map-info {
        max-width: calc(100% - 2rem);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-background {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .map-section {
        height: 400px;
    }

    .map-overlay {
        position: static;
        transform: none;
        padding: 1rem;
    }

    .map-info {
        max-width: 100%;
    }

    .faq-section {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .btn-submit,
    .btn-whatsapp,
    .btn-directions {
        width: 100%;
        justify-content: center;
    }
}
