/* ============================================
   CHILTERN ASSOCIATES - CONTACT PAGE CSS
   Modern & Professional Redesign
============================================ */

/* -- Hero Banner -- */
.ct-hero {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 100px !important;
    overflow: hidden;
}
.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,50,42,0.94) 0%, rgba(31,122,99,0.88) 55%, rgba(20,90,74,0.80) 100%);
    z-index: 1;
}
.ct-hero-content {
    position: relative;
    z-index: 2;
}
.ct-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 22px;
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.ct-hero-badge i {
    font-size: 16px;
}
.ct-hero-content h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.15;
}
.ct-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* -- Info Bar Cards (overlapping hero) -- */
.ct-info-bar {
    position: relative;
    z-index: 3;
    margin-top: -56px;
    padding: 0 !important;
}
.ct-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
}
.ct-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(31,122,99,0.13);
    border-bottom-color: #1F7A63;
}
.ct-info-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F7A63 0%, #145A4A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(31,122,99,0.25);
    transition: all 0.35s ease;
}
.ct-info-card:hover .ct-info-icon {
    transform: scale(1.1) rotate(5deg);
}
.ct-info-icon i {
    font-size: 22px;
    color: #fff;
}
.ct-info-text h5 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 6px !important;
}
.ct-info-text p {
    font-size: 14px;
    color: #4A4A4A;
    margin: 0;
    line-height: 1.6;
}
.ct-info-text p a {
    color: #1F7A63;
    font-weight: 500;
    transition: all 0.3s ease;
}
.ct-info-text p a:hover {
    color: #145A4A;
}

/* -- Main Contact Section -- */
.ct-main-section {
    padding: 80px 0 90px !important;
    background: #F8FBFA;
}

/* Form Wrapper */
.ct-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    height: 100%;
}
.ct-form-header {
    margin-bottom: 32px;
}
.ct-label {
    display: inline-block;
    background: #E8F5F1;
    color: #1F7A63;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.ct-form-header h2 {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 10px !important;
    line-height: 1.3;
    text-transform: none !important;
}
.ct-form-header p {
    font-size: 15px;
    color: #4A4A4A;
    line-height: 1.7;
    margin: 0;
}

/* Contact Form 7 Styling */
.ct-form-body .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ct-form-body .wpcf7-form p {
    margin-bottom: 16px;
}
.ct-form-body .wpcf7-form .form-control,
.ct-form-body .wpcf7-form input[type="text"],
.ct-form-body .wpcf7-form input[type="email"],
.ct-form-body .wpcf7-form input[type="tel"],
.ct-form-body .wpcf7-form textarea,
.ct-form-body .wpcf7-form select {
    background: #F5F8F7 !important;
    border: 2px solid #E8ECF0 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    color: #1A1A1A !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
    height: auto !important;
    box-shadow: none !important;
}
.ct-form-body .wpcf7-form input[type="text"]:focus,
.ct-form-body .wpcf7-form input[type="email"]:focus,
.ct-form-body .wpcf7-form input[type="tel"]:focus,
.ct-form-body .wpcf7-form textarea:focus,
.ct-form-body .wpcf7-form select:focus {
    border-color: #1F7A63 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(31,122,99,0.08) !important;
}
.ct-form-body .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}
.ct-form-body .wpcf7-form input[type="submit"],
.ct-form-body .wpcf7-form .wpcf7-submit {
    display: inline-block;
    background: linear-gradient(135deg, #1F7A63 0%, #145A4A 100%) !important;
    color: #fff !important;
    padding: 16px 44px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(31,122,99,0.3);
    margin-top: 8px;
    width: auto;
}
.ct-form-body .wpcf7-form input[type="submit"]:hover,
.ct-form-body .wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(135deg, #145A4A 0%, #0E3F35 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(31,122,99,0.35);
}
.ct-form-body .wpcf7 form .wpcf7-response-output {
    color: #1A1A1A;
    border-radius: 8px;
    font-size: 14px;
}

/* -- Sidebar -- */
.ct-sidebar {
    background: linear-gradient(160deg, #1F7A63 0%, #145A4A 100%);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(31,122,99,0.2);
    position: relative;
    overflow: hidden;
}
.ct-sidebar::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.ct-sidebar::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.ct-sidebar-top {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}
.ct-sidebar-top h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
}
.ct-sidebar-top p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* Sidebar Contact Items */
.ct-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.ct-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.ct-sidebar-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateX(4px);
}
.ct-sidebar-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.ct-sidebar-item:hover .ct-sidebar-icon {
    background: #fff;
}
.ct-sidebar-icon i {
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
}
.ct-sidebar-item:hover .ct-sidebar-icon i {
    color: #1F7A63;
}
.ct-sidebar-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
}
.ct-sidebar-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.5;
}
.ct-sidebar-item p a {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}
.ct-sidebar-item p a:hover {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: underline;
}

/* Sidebar Business Hours CTA */
.ct-sidebar-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.25);
    position: relative;
    z-index: 1;
}
.ct-sidebar-cta-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #FF7A00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255,122,0,0.35);
}
.ct-sidebar-cta-icon i {
    font-size: 20px;
    color: #fff;
}
.ct-sidebar-cta strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2px;
}
.ct-sidebar-cta p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* -- Map Section -- */
.ct-map-section {
    padding: 80px 0 0 !important;
    background: #fff;
}
.ct-map-header {
    margin-bottom: 40px;
}
.ct-map-header .ct-label {
    margin-bottom: 12px;
}
.ct-map-header h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 0 !important;
}
.ct-map-wrapper {
    line-height: 0;
    border-top: 4px solid #1F7A63;
    position: relative;
    overflow: hidden;
}
.ct-map-wrapper iframe {
    width: 100% !important;
    min-height: 450px;
    border: none !important;
    display: block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */

@media (max-width: 1199px) {
    .ct-hero-content h1 { font-size: 40px !important; }
    .ct-form-wrapper { padding: 36px 30px; }
    .ct-sidebar { padding: 32px 24px; }
    .ct-form-header h2 { font-size: 28px !important; }
}

@media (max-width: 991px) {
    .ct-hero {
        min-height: 300px;
        padding: 90px 0 70px !important;
    }
    .ct-hero-content h1 { font-size: 34px !important; }
    .ct-main-section { padding: 60px 0 70px !important; }
    .ct-sidebar { margin-top: 0; }
    .ct-form-header h2 { font-size: 26px !important; }
    .ct-sidebar-top h3 { font-size: 22px !important; }
    .ct-map-section { padding: 50px 0 0 !important; }
}

@media (max-width: 767px) {
    .ct-hero {
        min-height: 260px;
        padding: 80px 0 60px !important;
    }
    .ct-hero-content h1 { font-size: 28px !important; }
    .ct-hero-sub { font-size: 15px; max-width: 100%; }
    .ct-hero-badge { font-size: 12px; padding: 6px 16px; }
    .ct-info-bar { margin-top: -40px; }
    .ct-info-card {
        padding: 24px 20px;
        gap: 16px;
    }
    .ct-main-section { padding: 40px 0 50px !important; }
    .ct-form-wrapper {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .ct-form-header h2 { font-size: 24px !important; }
    .ct-sidebar {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .ct-sidebar-top h3 { font-size: 20px !important; }
    .ct-map-section { padding: 40px 0 0 !important; }
    .ct-map-header h2 { font-size: 26px !important; }
    .ct-map-wrapper iframe { min-height: 320px; }
    .ct-info-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .ct-info-icon i { font-size: 20px; }
}

@media (max-width: 575px) {
    .ct-hero {
        padding: 70px 0 50px !important;
        min-height: 220px;
    }
    .ct-hero-content h1 { font-size: 24px !important; }
    .ct-hero-sub { font-size: 14px; }
    .ct-info-bar { margin-top: -30px; }
    .ct-info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 24px 16px;
    }
    .ct-info-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }
    .ct-form-wrapper {
        padding: 24px 16px;
        border-radius: 14px;
    }
    .ct-form-header h2 { font-size: 22px !important; }
    .ct-form-body .wpcf7-form input[type="submit"],
    .ct-form-body .wpcf7-form .wpcf7-submit {
        width: 100%;
        text-align: center;
    }
    .ct-sidebar {
        padding: 24px 16px;
        border-radius: 14px;
    }
    .ct-sidebar-top h3 { font-size: 20px !important; }
    .ct-sidebar-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .ct-sidebar-cta {
        flex-direction: column;
        text-align: center;
    }
    .ct-map-header h2 { font-size: 22px !important; }
    .ct-map-wrapper iframe { min-height: 280px; }
    .ct-main-section { padding: 30px 0 40px !important; }
}
