/* =========================================================
   ANJANEY AGRO ENTERPRISE
   CONTACT PAGE

   Header and Footer use the common website CSS.
========================================================= */


/* =========================================================
CONTACT PAGE — HERO
Edit this section to control the Contact page hero.
========================================================= */

.contact-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: flex-start;
    padding: 145px 0 80px;
    background:
        url("../images/home/anjaney-agro-enterprise-contact-hero.webp.png");
    background-size: cover;
    background-position: 65% center;
    color: var(--white);
    overflow: hidden;
}

/* Dark overlay — same as About page */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 16, 0.92) 0%,
            rgba(8, 28, 16, 0.82) 28%,
            rgba(8, 28, 16, 0.48) 52%,
            rgba(8, 28, 16, 0.10) 100%
        );
    z-index: 1;
}

/* Hero content stays above the overlay */
.contact-hero .page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    margin-left: 35px;
    transform: none
}

/* Section label */
.contact-hero .section-label {
    margin-bottom: 14px;
    color: #e4c16a;
}

/* Main heading */
.contact-hero h1 {
    max-width: 850px;
    margin-top: 0;
    color: var(--white);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 600;
}

/* Highlighted heading line */
.contact-hero h1 span {
    display: block;
    color: #e4c16a;
}

/* Description */
.contact-hero .page-hero-content > p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
MOBILE — CONTACT HERO
========================================================= */

@media (max-width: 768px) {

    .contact-hero {
        min-height: 500px;
        align-items: center;
        padding: 120px 0 60px;
    }

    .contact-hero h1 {
        font-size: 40px;
    }

    .contact-hero-description {
        font-size: 16px;
    }

    .contact-hero .page-hero-content {
    text-align: left;
    margin-left: 15px;
    }

    

}


/* =========================================================
SMALL MOBILE — CONTACT HERO
========================================================= */

@media (max-width: 480px) {

    .contact-hero {
        min-height: 470px;
        padding: 105px 0 50px;
    }

    .contact-hero h1 {
        font-size: 35px;
    }

    .contact-hero-description {
        font-size: 15px;
    }

}



/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    background: var(--white);
}


/* =========================================================
   CONTACT LAYOUT
   Both contact sections use equal width and equal height.
========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}


/* =========================================================
   CONTACT INFORMATION CARD
   Left side of the contact section.
   Background can be changed here.
========================================================= */

.contact-info {
    height: 100%;
    box-sizing: border-box;
    padding: 45px;
    background: #eef3ed;
    border: 1px solid var(--border);
}


/* Contact information heading */

.contact-info h2 {
    color: var(--dark);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 20px;
}


/* Contact information introduction */

.contact-info > p:not(.section-label) {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 16px;
}


/* Section label */

.contact-info .section-label {
    margin-bottom: 10px;
}


/* =========================================================
   CONTACT ITEMS
========================================================= */

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}


/* =========================================================
   CONTACT ICONS
========================================================= */

.contact-icon {
    min-width: 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-green);
    color: var(--accent-dark);
    border: 1px solid var(--border);
}

.contact-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}


/* =========================================================
   CONTACT ITEM TEXT
========================================================= */

.contact-item h3 {
    color: var(--dark);
    font-size: 16px;
    margin: 0 0 5px;
}

.contact-item p,
.contact-item a {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.7;
}

.contact-item a {
    display: block;
    width: fit-content;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item p {
    margin: 0;
}


/* =========================================================
   CONTACT FORM CARD
   Right side of the contact section.
   Existing enquiry form design is preserved.
========================================================= */

.contact-form-wrapper {
    height: 100%;
    box-sizing: border-box;
    padding: 45px;
    background: var(--cream);
    border: 1px solid var(--border);
}


/* =========================================================
   FORM HEADING
========================================================= */

.form-heading h2 {
    color: var(--dark);
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-heading > p:last-child {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 30px;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
}


/* Two-column form rows */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}


/* Form labels */

.form-group label {
    display: block;
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}


/* Form fields */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    color: var(--text);
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}


/* Field placeholders */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9a9f9b;
}


/* Field focus */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(36, 92, 58, 0.08);
}


/* Message field */

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}


/* =========================================================
   PHONE / WHATSAPP FIELD
   Adjust country-code box width here.
========================================================= */

.phone-field {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
    position: relative;
}


/* =========================================================
   SEARCHABLE COUNTRY SELECTOR
========================================================= */

.country-select {
    position: relative;
    width: 100%;
}

.country-select-button {
    width: 100%;
    height: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.country-select-button:hover,
.country-select-button[aria-expanded="true"] {
    border-color: var(--primary);
}


/* Selected country code */

.selected-country {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Country dropdown arrow */

.country-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.country-select-button[aria-expanded="true"] .country-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   COUNTRY DROPDOWN
========================================================= */

.country-dropdown {
    position: absolute;
    z-index: 100;
    top: calc(100% + 5px);
    left: 0;
    width: 280px;
    max-width: 90vw;
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.country-dropdown.open {
    display: block;
}


/* Country search */

.country-search-wrapper {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.country-search {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.country-search:focus {
    border-color: var(--primary);
}


/* Country list */

.country-options {
    max-height: 240px;
    overflow-y: auto;
}


/* Country option */

.country-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    background: var(--white);
    color: var(--text);
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.country-option:hover,
.country-option.selected {
    background: var(--light-green);
    color: var(--primary-dark);
}


/* Country name */

.country-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Country code */

.country-code {
    flex-shrink: 0;
    font-weight: 600;
}


/* No country results */

.no-country-results {
    padding: 15px 12px;
    color: var(--light-text);
    font-size: 13px;
}


/* =========================================================
   FORM ACTION BUTTONS
   Edit this section to adjust button layout and spacing.
========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* Main enquiry button */

.form-submit {
    border: none;
    cursor: pointer;
}


/* WhatsApp button */

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   WHATSAPP INFORMATION NOTE
========================================================= */

.whatsapp-note {
    margin-top: 10px;
    margin-left: 3px;
    color: var(--light-text);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   FORM NOTE / STATUS
========================================================= */

.form-note {
    margin-top: 15px;
    color: var(--light-text);
    font-size: 12px;
    line-height: 1.6;
}

.form-status {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    background: var(--light-green);
    border-left: 3px solid var(--primary);
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.5;
}

.form-status.show {
    display: block;
}


/* =========================================================
   CTA STRIP
========================================================= */

.contact-cta-strip {
    background: var(--light-green);
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-cta-inner h2 {
    color: var(--dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    margin: 0;
}


/* =========================================================
   TABLET
   Stack the two cards below 1100px.
========================================================= */

@media (max-width: 1100px) {

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}


/* =========================================================
   MOBILE — CONTACT SECTION
========================================================= */

@media (max-width: 768px) {

    .contact-info {
        padding: 30px 22px;
    }

    .contact-form-wrapper {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .country-dropdown {
        width: min(280px, calc(100vw - 44px));
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .contact-item {
        gap: 14px;
        padding: 14px 0;
    }

    .contact-icon {
        min-width: 38px;
        width: 38px;
        height: 38px;
    }

    .contact-icon svg {
        width: 19px;
        height: 19px;
    }

    .contact-info {
        padding: 25px 18px;
    }

    .contact-form-wrapper {
        padding: 25px 18px;
    }

    .phone-field {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 6px;
    }

    .country-select-button {
        padding: 13px 9px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

}