﻿/* Health Travel Insurance Hajj Umrah — aligned with check-health-insurance layout; class prefix: hthiu- */

#preloader {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

    #preloader .loader-logo {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

.hthiu-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #163e37;
    border-radius: 50%;
    animation: hthiu-spin 0.8s linear infinite;
}

@keyframes hthiu-spin {
    to {
        transform: rotate(360deg);
    }
}

.hthiu-inquiry {
    font-family: var(--font-family);
    max-width: 1132px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    min-height: 26vh;
}

.hthiu-form-panel {
    max-width: 640px;
    margin: 0 auto;
}

.hthiu-input-group,
.hthiu-checkbox-group,
.hthiu-actions {
    padding: 0 1rem;
}

.hthiu-actions {
    text-align: center;
}

.hthiu-input-group {
    margin-bottom: 1.25rem;
}

.hthiu-checkbox-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 0.75rem;
}

.hthiu-checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.hthiu-checkbox-label {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #212529;
    cursor: pointer;
}

.hthiu-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.hthiu-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 1rem;
}

    .hthiu-input:focus {
        border-color: #163e37;
        outline: none;
    }

.hthiu-error {
    color: #dc3545;
    font-size: 0.9rem;
    display: block;
    margin-top: 4px;
}

.hthiu-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.hthiu-btn-primary {
    width: 100%;
    background: #163e37;
    color: #fff;
    font-weight: 600;
}

    .hthiu-btn-primary:hover {
        background: #163e37a8;
    }

    .hthiu-btn-primary:disabled {
        background: #f3f4f6;
        cursor: not-allowed;
        color: #aeb8d3;
    }

.hthiu-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #d0d5dd;
    font-size: 14px !important;
    font-weight: bold;
}

    .hthiu-btn-secondary:hover {
        background: #E8EAED;
    }

.hthiu-results-panel {
    margin-top: 1.5rem;
}

.hthiu-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.hthiu-results-header-action {
    flex-shrink: 0;
}

.hthiu-results-header-identity {
    color: #334155;
}

.hthiu-results-identity-label {
    font-weight: 600;
}

.hthiu-results-identity-value {
    margin-left: 0.25rem;
}

.hthiu-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;
}

.hthiu-results-card-header {
    padding: 16px 20px 10px 20px;
    background: #163e37;
    border-bottom: 0px solid #e9ecef;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.hthiu-provider-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #ffffff;
}

.hthiu-provider-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.hthiu-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    align-items: start;
}



.hthiu-card-details-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hthiu-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hthiu-timeline-section {
    padding: 1rem 6rem;
}

.hthiu-timeline-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6C757D;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hthiu-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

    .hthiu-timeline::before {
        content: '';
        position: absolute;
        top: 16px;
        left: 24px;
        right: 24px;
        height: 2px;
        background: #E9ECEF;
    }

.hthiu-timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hthiu-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E9ECEF;
    color: #163e37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hthiu-timeline-point.active .hthiu-timeline-icon {
    background: #163e37;
    color: #fff;
}

.hthiu-timeline-point.expiry .hthiu-timeline-icon {
    color: #163e37;
}

.hthiu-timeline-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6C757D;
}

.hthiu-timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.hthiu-timeline-point.expiry .hthiu-timeline-date {
    color: #212529;
}

.hthiu-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
}

.hthiu-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.hthiu-no-results {
    display: block;
    color: #4ead04;
    margin-bottom: 1rem;
    padding: 20px;
    text-align: center;
    border: 1px solid #65e103;
    border-radius: 12px;
    background: #f2fff3;
}

.hthiu-error-panel {
    padding: 20px 24px;
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.hthiu-error-message {
    color: #dc3545;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.hthiu-status-active {
    background: lime;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: #163e37;
    margin: 0.2rem 0;
}
.hthiu-status-not-active {
    background: #ff0000;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: #ffffff;
    margin: 0.2rem 0;
}
.hthiu-status-label {
    text-align: center;
}
.hthiu-status {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .hthiu-card-body {
        grid-template-columns: 1fr;
    }

    .hthiu-timeline-section {
        padding: 1rem 0;
    }
}

@media (max-width: 360px) {
    .hthiu-timeline-date {
        font-size: 0.7rem !important;
    }

    .hthiu-timeline-section {
        padding: 1rem 0 !important;
    }
}
