/* Health Travel Insurance Hajj Umrah — NDS form pattern; class prefix: hit- */

.hit-preloader-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

    .hit-preloader-overlay .hit-preloader-inner {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 90vw;
        text-align: center;
    }

    .hit-preloader-overlay .hit-preloader-msg {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #163e37;
        line-height: 1.4;
    }

.hit-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #163e37;
    border-radius: 50%;
    animation: hit-spin 0.8s linear infinite;
}

@keyframes hit-spin {
    to {
        transform: rotate(360deg);
    }
}

.hit-inquiry {
    font-family: var(--font-family);
    max-width: 1132px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    min-height: 26vh;
}

.hit-form-panel {
    max-width: 640px;
    margin: 0 auto;
}

.hit-form-field,
.hit-consent-field,
.hit-actions {
    padding: 0 1rem;
}

/* NDS field row: identity input + trailing clear action */
.hit-inquiry .hit-form-field .nds-form-control {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

    .hit-inquiry .hit-form-field .nds-form-control > .hit-control-input,
    .hit-inquiry .hit-form-field .nds-form-control > .nds-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hit-inquiry .hit-form-field .nds-form-control .nds-form-action {
        flex: 0 0 auto;
        align-self: stretch;
    }

.hit-inquiry .hit-form-field .hit-clear[hidden],
.hit-inquiry .hit-form-field .hit-clear[hidden="hidden"] {
    display: none !important;
}

.hit-actions {
    text-align: center;
    margin-top: 1.25rem;
}

.hit-form-field {
    margin-bottom: 1.25rem;
}

.hit-form-field .nds-form-header label .nds-label {
    font-weight: 600;
    color: #212529;
}

/* NDS owns the field chrome on .nds-form-control; keep the input borderless */
.hit-inquiry .hit-form-field .nds-form-control {
    width: 100%;
    align-items: center;
}

.hit-control-input,
.hit-control-input.nds-input {
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    box-sizing: border-box;
    text-align: start;
}

/* Red field chrome without NDS data-status (avoids Forms.clearStatus on input) */
.hit-inquiry .hit-form-field.nds-form-container.hit-field-error > .nds-form-control,
.hit-inquiry .hit-form-field.nds-form-container:has(.hit-validator-footer .validator[style*="inline"]) > .nds-form-control {
    border-color: var(--form-field-border-error, #dc3545) !important;
}

.hit-inquiry .hit-form-field.nds-form-container.hit-field-error > .nds-form-control::before,
.hit-inquiry .hit-form-field.nds-form-container:has(.hit-validator-footer .validator[style*="inline"]) > .nds-form-control::before {
    background-color: var(--form-field-border-error, #dc3545);
    width: 100%;
}

.hit-validator-footer {
    padding: 0;
    display: block !important;
    width: 100%;
}

.hit-validator-footer[hidden] {
    display: block !important;
}

.hit-validator-footer .hit-error.validator,
.hit-validator-footer span.hit-error.validator,
.hit-validator-footer .nds-feedback.validator {
    margin-top: 0;
    width: 100%;
    text-align: start;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
    gap: var(--spacing-sm, 0.5rem);
    color: var(--text-error, #dc3545);
    box-sizing: border-box;
}

/* ASP.NET Dynamic validators set display:inline; keep NDS feedback row under the field */
.hit-validator-footer .nds-feedback.validator[style*="inline"] {
    display: flex !important;
}

/* Outline cancel-circle error icon (red ring + X) */
.hit-validator-footer .nds-feedback.nds-outline.validator[data-status="error"] .nds-feedback-icon .nds-icon {
    --nds-icon: var(--nds-icon-cancel-circle);
}

.hit-consent-wrap {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
}

.hit-consent-validator-footer {
    padding: 0 1rem;
    text-align: start;
}

/* NDS check row: full-width multi-line consent (override NDS 16px line-height + stretch alignment) */
.hit-inquiry .hit-consent.nds-form-container.nds-check-container:not([hidden]),
.hit-inquiry .hit-consent-field.nds-form-container.nds-check-container:not([hidden]) {
    width: 100% !important;
    max-width: 100%;
    --form-width: 100%;
    align-items: flex-start !important;
    margin-bottom: 0;
}

.hit-consent .nds-form-header {
    flex: 1 1 auto;
    min-width: 0;
}

    .hit-inquiry .hit-consent.nds-form-container.nds-check-container:not([hidden]) > .nds-form-header .nds-label.hit-consent-label,
    .hit-inquiry .hit-consent-field.nds-form-container.nds-check-container:not([hidden]) > .nds-form-header .nds-label.hit-consent-label {
        margin: 0;
        font-weight: 400 !important;
        line-height: 1.75 !important;
        text-align: start;
        color: #212529;
    }

    .hit-inquiry .hit-consent.nds-form-container.nds-check-container:not([hidden]) > .nds-form-control,
    .hit-inquiry .hit-consent-field.nds-form-container.nds-check-container:not([hidden]) > .nds-form-control {
        align-self: flex-start;
        margin-block-start: calc((1.75em - var(--nds-input-size, 16px)) / 2);
    }

.hit-error {
    color: #dc3545;
    font-size: 0.9rem;
}

.nds-btn.nds-primary:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #aeb8d3;
}

.hit-results-panel {
    margin-top: 1.5rem;
}

.hit-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    justify-content: space-between;
    width: 100%;
    border-bottom: 2px solid #f3f4f6;
    padding: 0 0 1rem 0;
}

    .hit-results-toolbar .hit-actions {
        padding: 0;
    }

    .hit-results-toolbar .hit-queried-identity {
        font-size: 1rem;
        font-weight: 600;
        color: #163e37;
        white-space: nowrap;
        text-align: start;
    }

.hit-results-identity-label {
    font-weight: 600;
}

.hit-results-identity-value {
    margin-inline-start: 0.25rem;
}

.hit-results-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d2d6db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.hit-results-card-header {
    padding: 16px 20px 10px 20px;
    background: #163e37;
    border-bottom: 0px solid #e9ecef;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.hit-provider-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #ffffff;
}

.hit-provider-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.hit-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    align-items: start;
}

.hit-timeline-section {
    padding: 1rem 6rem;
}

.hit-timeline-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6C757D;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hit-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

    .hit-timeline::before {
        content: '';
        position: absolute;
        top: 16px;
        left: 24px;
        right: 24px;
        height: 2px;
        background: #E9ECEF;
    }

.hit-timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hit-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E9ECEF;
    color: #163e37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hit-timeline-point.active .hit-timeline-icon {
    background: #163e37;
    color: #fff;
}

.hit-timeline-point.expiry .hit-timeline-icon {
    color: #163e37;
}

.hit-timeline-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6C757D;
}

.hit-timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.hit-timeline-point.expiry .hit-timeline-date {
    color: #212529;
}

.hit-alert-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.hit-alert-wrap .nds-alert.nds-card {
    max-width: 100%;
}

.hit-results-footer .hit-alert-wrap {
    margin-top: 0.5rem;
}

.hit-status-active {
    background: lime;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: #163e37;
    margin: 0.2rem 0;
}

.hit-status-not-active {
    background: #ff0000;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: #ffffff;
    margin: 0.2rem 0;
}

.hit-status-label {
    text-align: center;
}

.hit-status {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .hit-card-body {
        grid-template-columns: 1fr;
    }

    .hit-timeline-section {
        padding: 1rem 0;
    }
}

@media (max-width: 360px) {
    .hit-timeline-date {
        font-size: 0.7rem !important;
    }

    .hit-timeline-section {
        padding: 1rem 0 !important;
    }
}
