/* Contact Page Specific Styles - Mobile First Refactor */

/* PAGE HERO (CONTACT PAGE) - Inherits base hero styles but tailored */
.page-hero {
    position: relative;
    height: 60vh;
    /* Default Mobile */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 49, 111, 0.85) 0%, rgba(10, 140, 58, 0.75) 100%), url('img/hutrancopage_home.jpg') center/cover;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 16px;
    /* Mobile padding */
    animation: fadeInUp 0.8s ease;
}

.page-hero-content h1 {
    font-size: 32px;
    /* Mobile size */
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

.page-hero-content p {
    font-size: 16px;
    /* Mobile size */
    line-height: 1.6;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTACT SECTION - Mobile First */
.contact-section {
    padding: 40px 16px;
    /* Mobile padding */
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile Stack */
    gap: 40px;
    align-items: start;
}

/* CONTACT INFO - Mobile First */
.contact-info {
    background: #fff;
    padding: 24px;
    /* Mobile padding */
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    font-size: 24px;
    /* Mobile size */
    color: var(--brand-blue);
    margin-bottom: 24px;
    font-weight: 800;
}

.info-item {
    display: flex;
    flex-direction: column;
    /* Mobile Stack */
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-of-type {
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    font-size: 24px;
    /* Mobile size */
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-green), #068935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    /* Align start on mobile stack */
}

.info-content h3 {
    font-size: 18px;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.info-content p a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-content p a:hover {
    color: #068935;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    /* Center on mobile */
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    /* Mobile size */
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 50%;
    /* font-size: 20px; Removed for SVG */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.social-link:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* CONTACT FORM - Mobile First */
.contact-form-wrapper {
    background: #fff;
    padding: 24px;
    /* Mobile padding */
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    font-size: 24px;
    /* Mobile size */
    color: var(--brand-blue);
    margin-bottom: 12px;
    font-weight: 800;
}

.contact-form-wrapper .subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-message {
    display: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
    font-size: 15px;
    animation: slideDown 0.4s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile Stack */
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.required {
    color: var(--brand-orange);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    /* Prevent IOS zoom */
    font-family: 'Inter', sans-serif;
    color: var(--text);
    transition: all 0.3s ease;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(10, 140, 58, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.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='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form-wrapper .btn {
    width: 100%;
    /* Full width mobile */
    justify-content: center;
    margin-top: 8px;
}

/* MAP SECTION - Mobile First */
.map-section {
    padding: 40px 16px;
    /* Mobile padding */
    background: #fff;
}

.map-container {
    max-width: 1280px;
    margin: 0 auto;
}

.map-wrapper {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 350px;
    /* Mobile height */
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ SECTION - Mobile First */
.faq-section {
    padding: 40px 16px;
    /* Mobile padding */
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    padding-right: 50px;
    /* Space for icon */
    font-size: 16px;
    /* Mobile size */
    font-weight: 600;
    color: var(--brand-blue);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question::after {
    content: '+';
    font-size: 28px;
    font-weight: 400;
    color: var(--brand-green);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 500px;
    /* Arbitrary large number */
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}


/* ========================================
   DESKTOP ENHANCEMENTS (min-width)
   ======================================== */

/* Tablet & Up */
@media (min-width: 768px) {

    /* HERO */
    .page-hero {
        height: 50vh;
        min-height: 400px;
    }

    .page-hero-content h1 {
        font-size: 40px;
    }

    .page-hero-content p {
        font-size: 18px;
    }

    /* FORMS */
    .form-row {
        grid-template-columns: 1fr 1fr;
        /* Two columns */
        gap: 20px;
    }

    .contact-form-wrapper .btn {
        width: auto;
        /* Auto width */
        display: inline-flex;
        padding: 12px 32px;
    }

    /* INFO */
    .info-item {
        flex-direction: row;
        /* Row layout */
        gap: 20px;
        padding-bottom: 32px;
    }

    .info-icon {
        font-size: 32px;
        width: 56px;
        height: 56px;
        align-self: center;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-link {
        width: 48px;
        height: 48px;
        /* font-size: 24px; Removed for SVG */
    }
}

/* Desktop & Up */
@media (min-width: 1024px) {

    .contact-section,
    .map-section,
    .faq-section {
        padding: 80px 24px;
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
        /* Side by side */
        gap: 60px;
    }

    .page-hero-content h1 {
        font-size: 48px;
    }

    .page-hero-content p {
        font-size: 20px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 40px;
    }

    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 32px;
    }

    .map-wrapper {
        margin-top: 40px;
        height: 500px;
    }

    .faq-question {
        padding: 24px;
        padding-right: 24px;
        font-size: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .faq-question::after {
        position: static;
        transform: none;
    }

    .faq-question.active::after {
        transform: rotate(45deg);
    }
}