/* =============================================
   CONTACT PAGE CSS - JK Drive Technology
   Matched exactly to provided design screenshots
   ============================================= */

/* ------------------------------------------------------------------
   1) HERO / INTRO  – light-gray panel with title + welcome paragraph
   ------------------------------------------------------------------ */
.contact-intro {
    background: #ededed;
    padding: 55px 0 50px;
    text-align: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 22px;
}

.contact-title span { color: var(--accent); }

.contact-intro-text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.9;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

/* ------------------------------------------------------------------
   2) CONTACT INFO CARDS  – three light-gray cards, navy circle icons
   ------------------------------------------------------------------ */
.contact-cards-section {
    background: var(--white);
    padding: 60px 0 60px;
}

.contact-info-card {
    background: #ededed;
    border-radius: 14px;
    padding: 42px 28px 38px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 42, 74, 0.10);
}

.contact-card-icon {
    width: 62px;
    height: 62px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
}

.contact-card-icon i {
    font-size: 24px;
    color: var(--white);
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
}

.contact-info-card p {
    font-size: 13.5px;
    color: #6a6a6a;
    line-height: 1.7;
    margin: 0 0 4px;
}

.contact-info-card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   3) MAP + CONTACT FORM  – split row, map left / form right (gray bg)
   ------------------------------------------------------------------ */
.contact-map-form {
    background: var(--white);
    padding: 0 0 70px;
}

.cmf-row {
    background: #ededed;
    border-radius: 6px;
    overflow: hidden;
    min-height: 480px;
}

.cmf-map-col {
    padding: 0;
    min-height: 480px;
}

.cmf-map-wrap {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.cmf-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
}

.cmf-form-col {
    background: #ededed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmf-form-inner {
    width: 100%;
    padding: 48px 50px;
    text-align: center;
}

.cmf-form-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmf-form-icon i {
    font-size: 38px;
    color: var(--primary);
}

.cmf-form-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.cmf-form-sub {
    font-size: 13.5px;
    font-style: italic;
    color: #7a7a7a;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 28px;
}

/* ── Form fields ── */
.cmf-form { text-align: left; }

.cmf-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.cmf-form input,
.cmf-form textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--primary);
    transition: var(--transition);
    outline: none;
}

.cmf-form input::placeholder,
.cmf-form textarea::placeholder {
    color: #9a9a9a;
    font-size: 13px;
}

.cmf-form input:focus,
.cmf-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 42, 74, 0.08);
}

.cmf-form textarea {
    resize: vertical;
    min-height: 110px;
    margin-bottom: 18px;
}

/* ── Submit button ── */
.cmf-submit-row {
    display: flex;
    justify-content: center;
}

.cmf-submit-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 11px 38px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.cmf-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 44, 145, 0.25);
}

/* ── Inline alerts ── */
.cmf-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    text-align: left;
}

.cmf-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cmf-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ------------------------------------------------------------------
   4) CTA BANNER  – white wave top + dark image background
   ------------------------------------------------------------------ */
.contact-cta-banner {
    position: relative;
    background: url('../images/home/feftghy.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 130px 0 90px;
    color: var(--white);
    overflow: hidden;
}

.cta-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.cta-wave-top svg {
    width: 100%;
    height: 110px;
    display: block;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 25, 45, 0.55) 0%,
        rgba(15, 25, 45, 0.78) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin-right: auto;
    margin-left: 0;
    padding-left: 80px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.35;
    margin: 0 0 18px;
}

.cta-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 620px;
    margin: 0;
}

/* ------------------------------------------------------------------
   5) RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .cmf-row { min-height: auto; }
    .cmf-map-col,
    .cmf-map-wrap,
    .cmf-map-wrap iframe { min-height: 360px; }

    .cmf-form-inner { padding: 36px 30px; }
    .cmf-row-3 { grid-template-columns: 1fr; }

    .cta-content { padding-left: 20px; padding-right: 20px; max-width: 100%; }
    .cta-content h2 { font-size: 22px; }
}

@media (max-width: 767px) {
    .contact-intro { padding: 40px 0 35px; }
    .contact-title { font-size: 26px; letter-spacing: 1px; }
    .contact-intro-text { font-size: 13.5px; }

    .contact-cards-section { padding: 40px 0; }
    .contact-info-card { padding: 32px 22px; }

    .contact-map-form { padding: 0 0 50px; }
    .cmf-form-title { font-size: 22px; }

    .contact-cta-banner { padding: 90px 0 60px; }
    .cta-wave-top svg { height: 70px; }
    .cta-content h2 { font-size: 20px; }
    .cta-content p { font-size: 13.5px; }
}
