/* ==========================================================================
   567 AGRI CONTACT PAGE STYLESHEET
   STRICTLY NAMESPACED UNDER .contact-page (NO GLOBAL OVERRIDES)
   ========================================================================== */

.contact-page,
.contact-page * { box-sizing: border-box; }

.contact-page {
    font-family: 'Roboto', sans-serif;
    color: #334155;
    background: #F7F9F8;
    line-height: 1.65;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    color: #0F172A;
    margin-top: 0;
}

.contact-page .contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HERO SECTION
============================================================ */
.contact-page .contact-hero {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-page .contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 38, 18, 0.88) 0%,
        rgba(20, 82, 40, 0.72) 55%,
        rgba(31, 122, 62, 0.28) 100%
    );
    z-index: 1;
}

.contact-page .contact-hero .contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-page .contact-hero-inner {
    max-width: 620px;
}

/* Breadcrumb */
.contact-page .contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.contact-page .contact-breadcrumb a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.contact-page .contact-breadcrumb a:hover { color: #fff; }

.contact-page .contact-breadcrumb .bc-sep {
    color: rgba(255,255,255,.5);
    font-size: 11px;
}

.contact-page .contact-breadcrumb span:last-child {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

/* Hero Title */
.contact-page .contact-hero-title {
    font-size: 56px;
    font-weight: 700 !important;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.3);
}

.contact-page .contact-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   CONTACT INFO CARDS (4 columns)
============================================================ */
.contact-page .contact-info-section {
    padding: 60px 0 0;
}

.contact-page .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-page .contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page .contact-info-card:hover {
    transform: translateY(-6px);
    border-color: #1F7A3E;
    box-shadow: 0 20px 50px rgba(31,122,62,.12);
}

.contact-page .ci-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F0FDF4;
    color: #1F7A3E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #BBFAD0;
    transition: all 0.3s ease;
}

.contact-page .contact-info-card:hover .ci-icon {
    background: #1F7A3E;
    color: #ffffff;
    border-color: #1F7A3E;
}

.contact-page .ci-content h3 {
    font-size: 14px;
    font-weight: 700 !important;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.contact-page .ci-content p {
    font-size: 14px;
    color: #334155;
    margin: 0 0 2px;
    line-height: 1.5;
}

.contact-page .ci-phone,
.contact-page .ci-email {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1F7A3E;
    text-decoration: none;
    margin-bottom: 2px;
    transition: color 0.2s;
}

.contact-page .ci-phone:hover,
.contact-page .ci-email:hover { color: #F68B1F; }

/* ============================================================
   CONTACT MAIN SECTION (2-col)
============================================================ */
.contact-page .contact-main-section {
    padding: 50px 0 80px;
}

.contact-page .contact-main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* FORM CARD */
.contact-page .contact-form-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 35px rgba(0,0,0,.07);
    padding: 40px 40px;
}

.contact-page .form-card-header {
    margin-bottom: 32px;
}

.contact-page .form-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #DCFCE7;
    color: #1F7A3E;
    border-radius: 50%;
    font-size: 16px;
    margin-bottom: 12px;
}

.contact-page .form-card-header h2 {
    font-size: 24px;
    font-weight: 700 !important;
    color: #0F172A;
    margin-bottom: 8px;
}

.contact-page .form-card-header p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Form Alerts */
.contact-page .form-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
}

.contact-page .form-alert i { font-size: 20px; margin-top: 2px; }

.contact-page .form-alert-success {
    background: #F0FDF4;
    border: 1px solid #BBFAD0;
    color: #15803D;
}

.contact-page .form-alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.contact-page .form-alert strong { display: block; margin-bottom: 3px; }
.contact-page .form-alert p { margin: 0; }

/* Form Fields */
.contact-page .cf-form { display: flex; flex-direction: column; gap: 18px; }

.contact-page .cf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-page .cf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-page .cf-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.contact-page .cf-field .req { color: #EF4444; }

.contact-page .cf-field input,
.contact-page .cf-field select,
.contact-page .cf-field textarea {
    border: 1.5px solid #D1D5DB;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #374151;
    background: #F9FAFB;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
    resize: vertical;
}

.contact-page .cf-field input:focus,
.contact-page .cf-field select:focus,
.contact-page .cf-field textarea:focus {
    border-color: #1F7A3E;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(31,122,62,.12);
}

.contact-page .cf-field input::placeholder,
.contact-page .cf-field textarea::placeholder { color: #9CA3AF; }

.contact-page .cf-field select { appearance: none; cursor: pointer; }

/* Submit Button */
.contact-page .btn-cf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1F7A3E;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(31,122,62,.3);
    width: 100%;
    letter-spacing: 0.5px;
}

.contact-page .btn-cf-submit:hover {
    background: #15542A;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(31,122,62,.4);
}

.contact-page .cf-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
    text-align: center;
    justify-content: center;
    margin: 0;
}

.contact-page .cf-note i { color: #1F7A3E; }

/* SIDEBAR */
.contact-page .contact-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-page .cs-company-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    padding: 28px;
}

.contact-page .cs-logo {
    max-height: 52px;
    width: auto;
    display: block;
    margin-bottom: 10px;
    object-fit: contain;
}

.contact-page .cs-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #1F7A3E;
    margin-bottom: 6px;
    font-family: 'Roboto', sans-serif !important;
}

.contact-page .cs-tagline {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-page .cs-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 16px 0;
}

.contact-page .cs-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-page .cs-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
}

.contact-page .cs-detail-list li i {
    color: #1F7A3E;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-page .cs-detail-list li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-page .cs-detail-list li a:hover { color: #1F7A3E; }

/* Social Card */
.contact-page .cs-social-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    padding: 24px 28px;
}

.contact-page .cs-social-card h4 {
    font-size: 14px;
    font-weight: 700 !important;
    color: #374151;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.contact-page .cs-social-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-page .cs-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-page .cs-fb { background: #EEF2FF; color: #3B5998; }
.contact-page .cs-fb:hover { background: #3B5998; color: #fff; }

.contact-page .cs-zalo { background: #E0F2FE; color: #0284C7; }
.contact-page .cs-zalo:hover { background: #0284C7; color: #fff; }

.contact-page .cs-yt { background: #FEF2F2; color: #DC2626; }
.contact-page .cs-yt:hover { background: #DC2626; color: #fff; }

/* ============================================================
   GOOGLE MAP SECTION
============================================================ */
.contact-page .contact-map-section {
    padding: 0 0 80px;
}

.contact-page .contact-map-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
    border: 1px solid #E2E8F0;
}

.contact-page .contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 500px;
}

/* ============================================================
   CTA SECTION
============================================================ */
.contact-page .contact-cta-section {
    background: #F0FDF4;
    border-top: 1px solid #BBFAD0;
    padding: 80px 0;
}

.contact-page .cta-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

/* CTA Left */
.contact-page .cta-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #DCFCE7;
    color: #1F7A3E;
    border-radius: 50%;
    font-size: 20px;
    margin-bottom: 16px;
}

.contact-page .cta-title {
    font-size: 32px;
    font-weight: 700 !important;
    color: #0F172A;
    margin-bottom: 14px;
    line-height: 1.3;
}

.contact-page .cta-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-page .cta-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-page .cta-check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1F7A3E;
}

.contact-page .cta-check-list li i { font-size: 16px; }

/* CTA Right: Hotline Card */
.contact-page .cta-hotline-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(31,122,62,.12);
    border: 1px solid #D1FAE5;
    overflow: hidden;
}

.contact-page .cta-engineer-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.contact-page .cta-engineer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.contact-page .cta-hotline-card:hover .cta-engineer-img { transform: scale(1.05); }

.contact-page .cta-hotline-content {
    padding: 24px 28px;
    text-align: center;
}

.contact-page .cta-call-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.contact-page .cta-phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #F68B1F;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
    font-family: 'Roboto', sans-serif !important;
}

.contact-page .cta-phone-display:hover { color: #D97008; }

.contact-page .cta-hours {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 20px;
}

.contact-page .cta-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-page .btn-cta-call,
.contact-page .btn-cta-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.4px;
}

.contact-page .btn-cta-call {
    background: #1F7A3E;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31,122,62,.3);
}

.contact-page .btn-cta-call:hover {
    background: #15542A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31,122,62,.4);
}

.contact-page .btn-cta-zalo {
    background: #F68B1F;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(246,139,31,.3);
}

.contact-page .btn-cta-zalo:hover {
    background: #D97008;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246,139,31,.4);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .contact-page .contact-main-layout { grid-template-columns: 1fr; }
    .contact-page .contact-sidebar-col { flex-direction: row; flex-wrap: wrap; }
    .contact-page .cs-company-card,
    .contact-page .cs-social-card { flex: 1 1 300px; }
    .contact-page .cta-layout { grid-template-columns: 1fr; }
    .contact-page .cta-hotline-card { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .contact-page .contact-hero { height: auto; min-height: 300px; padding: 60px 0; }
    .contact-page .contact-hero-title { font-size: 38px; }
    .contact-page .contact-info-grid { grid-template-columns: 1fr 1fr; }
    .contact-page .contact-form-card { padding: 24px 20px; }
    .contact-page .cf-row-2 { grid-template-columns: 1fr; }
    .contact-page .cta-check-list { grid-template-columns: 1fr; }
    .contact-page .cta-title { font-size: 24px; }
    .contact-page .contact-map-wrap iframe { height: 350px; }
}

@media (max-width: 480px) {
    .contact-page .contact-info-grid { grid-template-columns: 1fr; }
    .contact-page .contact-hero-title { font-size: 30px; }
    .contact-page .sidebar-col { flex-direction: column; }
    .contact-page .cs-social-row { flex-direction: row; flex-wrap: wrap; }
}
