/**
 * Stylesheet for Contact Us Page
 * Matches reference mockup media_1792780758283_428f4226.png pixel-perfect:
 * - Hero banner (Let's Contact. We're Here to Help You. + Breadcrumb)
 * - Left pill card (#525356) with concentric signal wave accents
 * - Right requirement card (#f7f7f8) with Contact Form 7 inputs, icons, and button
 * - Interactive Google Maps embed section
 *
 * @package Krishna_Overseas
 */

.krishna-contact-page-wrapper {
    width: 100%;
    background-color: #ffffff;
    font-family: var(--krishna-font-primary, 'Poppins', sans-serif);
    color: #22252a;
    line-height: 1.5;
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO BANNER SECTION
   ========================================================================== */
.krishna-contact-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    padding-top: 80px;
}

.krishna-contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 16, 14, 0.92) 0%, rgba(22, 16, 14, 0.8) 42%, rgba(22, 16, 14, 0.25) 75%, rgba(22, 16, 14, 0) 100%);
    z-index: 1;
}

.krishna-contact-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--krishna-container, 1320px);
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.krishna-contact-hero-content {
    max-width: 580px;
}

.krishna-contact-hero-title {
    font-family: var(--krishna-font-heading, 'Poppins', sans-serif);
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
}

.krishna-contact-hero-title .hero-line {
    display: block;
}

/* Breadcrumbs */
.krishna-contact-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-home:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.breadcrumb-home svg {
    display: block;
    stroke: currentColor;
    opacity: 0.9;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   2. MAIN CONTACT SECTION
   ========================================================================== */
.krishna-contact-main-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding: 65px 0 75px;
    box-sizing: border-box;
}

.krishna-contact-page-wrapper.no-hero .krishna-contact-main-section {
    padding-top: 110px;
}

.krishna-contact-main-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.krishna-contact-main-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 60px;
    align-items: center;
    box-sizing: border-box;
}

/* --- Left Column: Pill Card Wrap & Signal Waves --- */
.krishna-contact-pill-col {
    position: relative;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.krishna-contact-pill-card-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: center;
}

/* Signal Waves */
.krishna-signal-waves {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.krishna-signal-left {
    right: 100%;
    margin-right: 10px;
    left: auto;
}

.krishna-signal-right {
    left: 100%;
    margin-left: 10px;
    right: auto;
}

.krishna-signal-waves svg {
    display: block;
}

/* Pill Card */
.krishna-contact-pill-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: #535457;
    border-radius: 42px;
    padding: 24px 0 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    color: #ffffff;
    overflow: hidden;
}

.krishna-pill-top-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 auto 8px;
}

.krishna-pill-card-title {
    font-family: var(--krishna-font-heading, 'Poppins', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.25;
    padding: 0 20px;
}

.krishna-pill-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.12);
    margin-bottom: 4px;
}

.krishna-pill-items-list {
    display: flex;
    flex-direction: column;
}

.krishna-pill-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.krishna-pill-location-item {
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 6px;
}

/* Left Shelf Tab */
.krishna-pill-tab-shelf {
    background-color: #444548;
    height: 42px;
    min-width: 58px;
    width: 58px;
    border-radius: 0 21px 21px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.krishna-pill-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #38393c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.krishna-pill-icon svg {
    display: block;
    stroke: #ffffff;
}

.krishna-pill-details {
    display: flex;
    flex-direction: column;
    padding: 0 20px 0 14px;
    min-width: 0;
    flex: 1;
}

.krishna-pill-dept {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
}

.krishna-pill-val {
    font-size: 12.5px;
    color: #c8cbd0;
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap;
}

.krishna-pill-val:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-pill-address {
    font-style: normal;
    font-size: 11.5px;
    color: #c8cbd0;
    line-height: 1.45;
    margin: 0;
}

.krishna-pill-bottom-tab {
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.45);
    margin: 14px auto 0;
}

/* --- Right Column: Requirement Form Card --- */
.krishna-contact-form-col {
    width: 100%;
    box-sizing: border-box;
}

.krishna-contact-form-card {
    width: 100%;
    background-color: #f7f7f8;
    border-radius: 26px;
    padding: 36px 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.krishna-form-card-title {
    font-family: var(--krishna-font-heading, 'Poppins', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--krishna-primary, #ef7f1a);
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.krishna-form-card-subtitle {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.45;
    margin: 0 0 24px 0;
}

/* Contact Form 7 & Fallback Form Styling */
.krishna-cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.krishna-cf-field {
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.krishna-cf-field-full {
    grid-column: 1 / -1;
}

.krishna-cf-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: #22252a;
    margin-bottom: 7px;
    display: block;
    line-height: 1.2;
}

.krishna-cf-input-wrap,
.krishna-cf-select-wrap,
.krishna-cf-textarea-wrap {
    position: relative;
    width: 100%;
    display: block;
}

.krishna-contact-form-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: static;
}

/* Inputs & Form Controls */
.krishna-cf-input,
.krishna-contact-form-card input[type="text"],
.krishna-contact-form-card input[type="email"],
.krishna-contact-form-card input[type="tel"] {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 0 40px 0 14px;
    font-family: inherit;
    font-size: 13.5px;
    color: #22252a;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.krishna-cf-select,
.krishna-contact-form-card select {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 0 40px 0 14px;
    font-family: inherit;
    font-size: 13.5px;
    color: #4b5563;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.krishna-cf-textarea,
.krishna-contact-form-card textarea {
    width: 100%;
    height: 86px;
    min-height: 70px;
    background-color: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 12px 40px 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    color: #22252a;
    box-sizing: border-box;
    transition: all 0.25s ease;
    resize: vertical;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    line-height: 1.45;
}

.krishna-cf-input:focus,
.krishna-cf-select:focus,
.krishna-cf-textarea:focus,
.krishna-contact-form-card input:focus,
.krishna-contact-form-card select:focus,
.krishna-contact-form-card textarea:focus {
    outline: none;
    border-color: var(--krishna-primary, #ef7f1a);
    box-shadow: 0 0 0 3px rgba(239, 127, 26, 0.12);
}

/* Field Icons */
.krishna-cf-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8e95a2;
    pointer-events: none;
    z-index: 2;
}

.krishna-cf-select-icon {
    right: 15px;
    color: #4b5563;
}

.krishna-cf-textarea-icon {
    top: 14px;
    transform: none;
}

.krishna-cf-icon svg {
    display: block;
}

/* Submit Button */
.krishna-cf-submit-wrap {
    grid-column: 1 / -1;
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
}

.krishna-cf-submit,
.krishna-contact-form-card input[type="submit"],
.krishna-contact-form-card button[type="submit"] {
    background-color: #333333 !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 13px 44px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
    text-align: center;
    width: auto !important;
    max-width: max-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.krishna-cf-submit:hover,
.krishna-contact-form-card input[type="submit"]:hover,
.krishna-contact-form-card button[type="submit"]:hover {
    background-color: var(--krishna-primary, #ef7f1a) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 127, 26, 0.35);
}

/* CF7 Feedback / Notifications */
.wpcf7-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid #10b981;
    background-color: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0 0;
    font-size: 13.5px;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border: 1px solid #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0 0;
    font-size: 13.5px;
}

.krishna-contact-form-card p {
    margin: 0;
}

/* ==========================================================================
   3. GOOGLE MAPS SECTION
   ========================================================================== */
.krishna-contact-map-section {
    position: relative;
    width: 100%;
    line-height: 0;
    background-color: #e5e7eb;
    overflow: hidden;
    margin-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.krishna-contact-map-wrap {
    width: 100%;
    height: 390px;
}

.krishna-contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .krishna-contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .krishna-contact-pill-card-wrap {
        max-width: 380px;
    }

    .krishna-signal-left {
        right: 100%;
        margin-right: 8px;
        left: auto;
    }

    .krishna-signal-right {
        left: 100%;
        margin-left: 8px;
        right: auto;
    }

    .krishna-contact-hero-title {
        font-size: 32px;
    }

    .krishna-contact-hero {
        min-height: 330px;
        height: 340px;
        padding-top: 75px;
    }

    .krishna-contact-main-section {
        padding: 45px 0 55px;
    }
}

@media (max-width: 640px) {
    .krishna-contact-hero {
        min-height: 280px;
        height: 290px;
        padding-top: 70px;
    }

    .krishna-contact-hero-title {
        font-size: 26px;
    }

    .krishna-cf-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .krishna-contact-form-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .krishna-form-card-title {
        font-size: 20px;
    }

    .krishna-contact-pill-card {
        padding: 26px 18px;
        border-radius: 36px;
    }

    .krishna-signal-waves {
        display: none;
    }

    .krishna-contact-map-wrap {
        height: 300px;
    }
}
