/* =========================================================
   CONTACT PAGE — map + form card layout (V-Heal brand)
========================================================= */

.vh-contact-page {
    --vh-contact-ink: #123A5C;
    --vh-contact-muted: #5A6573;
    --vh-contact-dark: #0A2548;
    --vh-contact-orange: #fe6d02;
    --vh-contact-soft: #F1F3F6;
    position: relative;
    padding: 0px 0 80px;
    background: transparent;
}

.vh-contact-page .container {
    max-width: 1680px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.vh-contact-shell {
    background: var(--vh-contact-dark);
    border-radius: 40px;
    padding: 48px 36px 36px;
    box-shadow: 0 24px 60px rgba(10, 37, 72, 0.18);
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.vh-contact-heading {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 820px;
    flex: 0 0 auto;
}

.vh-contact-heading h1 {
    margin: 0;
    color: #fff;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.vh-contact-main-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: stretch;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    min-height: 560px;
}

.vh-contact-map {
    position: relative;
    min-height: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #e8eef5;
}

.vh-contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.vh-contact-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 12px 12px 8px;
    height: 100%;
}

.vh-contact-form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vh-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.vh-field {
    margin-bottom: 20px;
}

.vh-contact-form-row .vh-field {
    margin-bottom: 0;
}

.vh-field label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--vh-contact-ink);
    line-height: 1.2;
}

.vh-contact-form .form-control {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: var(--vh-contact-soft);
    color: var(--vh-contact-ink);
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
    outline: none;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.vh-contact-form textarea.form-control {
    min-height: 180px;
    flex: 1 1 auto;
    resize: vertical;
    line-height: 1.5;
}

.vh-contact-form .vh-field:has(textarea) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.vh-contact-form .vh-field:has(textarea) textarea {
    flex: 1 1 auto;
    min-height: 200px;
}

.vh-contact-form .form-control::placeholder {
    color: #8A94A3;
    font-weight: 400;
}

.vh-contact-form .form-control:focus {
    background: #e8edf3;
    box-shadow: 0 0 0 2px rgba(254, 109, 2, 0.25);
}

.vh-contact-form .help-block.with-errors {
    min-height: 0;
    margin-top: 6px;
    color: #c62828;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.vh-contact-form .help-block.with-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vh-contact-form .help-block.with-errors li {
    color: #c62828;
}

.vh-contact-form .form-control.has-error,
.vh-contact-form .has-error .form-control,
.vh-contact-form .vh-field.has-error .form-control,
.vh-contact-form .form-group.has-error .form-control {
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.28);
}

.vh-contact-form .form-control.has-success,
.vh-contact-form .has-success .form-control,
.vh-contact-form .vh-field.has-success .form-control,
.vh-contact-form .form-group.has-success .form-control {
    box-shadow: 0 0 0 2px rgba(67, 153, 42, 0.28);
}

.vh-contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#msgSubmit {
    margin-top: 12px;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
}

#msgSubmit.text-success {
    color: #43992a !important;
}

#msgSubmit.text-danger {
    color: #c62828 !important;
}

.vh-contact-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.vh-contact-submit {
    width: 100% !important;
    justify-content: center !important;
    margin-top: auto;
    min-height: 56px !important;
}

.vh-contact-submit::after {
    margin-left: auto;
}

.vh-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    flex: 0 0 auto;
}

.vh-contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 22px;
    background: #fff;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.vh-contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.vh-contact-info-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--vh-contact-orange);
    color: #fff;
    font-size: 18px;
}

.vh-contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vh-contact-info-text small {
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--vh-contact-muted);
    line-height: 1.2;
}

.vh-contact-info-text strong {
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--vh-contact-ink);
    line-height: 1.3;
    word-break: break-word;
}

/* Hide default page chrome leftovers if any */
body:has(.vh-contact-page) .page-header {
    display: none;
}

@media (max-width: 1199px) {
    .vh-contact-page .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .vh-contact-shell {
        padding: 44px 28px 32px;
        min-height: calc(100vh - 180px);
    }

    .vh-contact-main-card {
        min-height: 480px;
        gap: 24px;
        padding: 22px;
    }
}

@media (max-width: 991px) {
    .vh-contact-page {
        padding: 108px 0 56px;
    }

    .vh-contact-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vh-contact-shell {
        border-radius: 28px;
        padding: 36px 18px 24px;
        min-height: 0;
    }

    .vh-contact-heading {
        margin-bottom: 24px;
        max-width: 100%;
    }

    .vh-contact-heading h1 {
        font-size: 28px;
    }

    .vh-contact-main-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
        border-radius: 22px;
        min-height: 0;
    }

    .vh-contact-map {
        min-height: 320px;
        height: 320px;
        border-radius: 18px;
    }

    .vh-contact-form-wrap {
        padding: 6px 4px 4px;
        height: auto;
    }

    .vh-contact-form {
        height: auto;
    }

    .vh-contact-form .vh-field:has(textarea) textarea {
        min-height: 160px;
    }

    .vh-contact-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
    }
}

@media (max-width: 767px) {
    .vh-contact-page {
        padding: 100px 0 48px;
    }

    .vh-contact-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vh-contact-shell {
        border-radius: 24px;
        padding: 28px 12px 18px;
        width: 100%;
    }

    .vh-contact-heading {
        margin-bottom: 20px;
    }

    .vh-contact-heading h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .vh-contact-main-card {
        padding: 14px;
        gap: 16px;
        border-radius: 18px;
    }

    .vh-contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vh-contact-form-row .vh-field {
        margin-bottom: 16px;
    }

    .vh-contact-map {
        min-height: 260px;
        height: 260px;
    }

    .vh-contact-form textarea.form-control,
    .vh-contact-form .vh-field:has(textarea) textarea {
        min-height: 140px;
    }

    .vh-contact-info-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .vh-contact-info-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 16px;
    }

    .vh-contact-info-text strong {
        font-size: 14px;
    }

    .vh-contact-submit {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .vh-contact-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .vh-contact-shell {
        border-radius: 20px;
        padding: 24px 10px 16px;
    }

    .vh-contact-heading h1 {
        font-size: 22px;
    }

    .vh-contact-main-card {
        padding: 12px;
    }

    .vh-contact-map {
        min-height: 220px;
        height: 220px;
    }
}
