/* Shared production fixes for every Kalvi Kendra page. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

img,
picture,
video,
canvas,
svg {
    height: auto;
}

iframe {
    border: 0;
}

main,
section,
article,
.site,
.ast-container,
.elementor,
.elementor-element,
.e-con,
.e-con-inner,
.elementor-widget-container {
    min-width: 0;
    max-width: 100%;
}

p,
li,
a,
td,
th {
    overflow-wrap: anywhere;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kk-mobile-drawer {
    width: min(320px, 100vw) !important;
}

/* Contact form feedback and accessible focus treatment. */
.form-status {
    display: none;
    margin: 0 0 20px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.form-status.is-error {
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.form-control:focus-visible,
.submit-btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #fca311;
    outline-offset: 3px;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .training-list,
    .govt-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .contact-wrapper,
    .donate-premium-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .contact-title,
    .donate-title {
        font-size: clamp(1.75rem, 8vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .contact-form-box,
    .d-card,
    .bank-card {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .map-frame,
    .map-frame iframe {
        width: 100% !important;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .kk-nav-container,
    .kk-top-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .kk-logo img {
        max-width: 220px;
        height: auto !important;
        max-height: 58px;
    }

    .account-row,
    .info-item {
        gap: 12px !important;
    }
}
