/* Extracted from the inline <style> block that used to live inside Default.aspx's <body>.
   Moving it here lets browsers cache it across page loads instead of re-downloading it
   with every single request (also served fully HTML-parseable before it, improving first paint). */

.modal-dialog {
    max-width: 80%;
}

.otp-modal {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #4CAF50;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Alegreya Sans', sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-header .close span {
    font-size: 26px;
    color: #e74c3c;
}

.otp-title {
    font-size: 21px;
    font-weight: 600;
    color: #003399;
    text-align: center;
    margin-bottom: 10px;
}

.otp-instruction {
    font-size: 17px;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
}

.otp-detail {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.otp-input {
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.otp-note {
    color: #c62828;
    font-size: 14px;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.validate-btn {
    display: block;
    width: 100%; /* Full width of parent container */
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    background-color: #003399;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

    .validate-btn:hover {
        background-color: #1b5e20;
        color: white;
    }

body {
    background: #eee !important;
}

.tooltip-icon {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
    color: #007bff;
}

    .tooltip-icon::after {
        content: attr(data-tooltip);
        position: absolute;
        top: 130%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #222;
        color: #fff;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        white-space: pre-wrap;
        line-height: 1.6;
        width: 300px;
        text-align: left;
        display: none;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    /* Tooltip arrow */
    .tooltip-icon::before {
        content: "";
        position: absolute;
        top: 120%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #222 transparent transparent transparent;
        display: none;
    }

    .tooltip-icon:hover::after,
    .tooltip-icon:hover::before {
        display: block;
        opacity: 1;
    }

.icon-box {
    text-align: center;
    margin-bottom: 20px;
}

.service-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 45px;
    height: 45px;
    cursor: pointer;
}

.icon-text {
    font-size: 11px;
    font-weight: 500;
    color: #000;
}

.circle-yellow {
    background-color: #ffeb99;
}

.circle-orange {
    background-color: #ffc299;
}

.circle-green {
    background-color: #a8e6cf;
}

.circle-purple {
    background-color: #d1c4e9;
}

.modal-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #f8f9fa;
}

.modal-title {
    color: #333;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

.home-link {
    color: #003399;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.blink-red {
    color: red !important;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.captcha-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .captcha-wrap img {
        border: 1px solid #888;
        /* The <img> still carries width="220" height="60" HTML attributes as intrinsic sizing hints
           (avoids layout shift while the challenge image loads); this constrains the actual rendered
           size to the available space on narrow viewports instead of forcing horizontal overflow. */
        max-width: 100%;
        height: auto;
    }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Was flex-wrap: nowrap with a fixed 75px left margin - on phone-width viewports the combined
       fixed widths below (220px image + 50px refresh button + 150px captcha box + 120px login button
       + 75px margin) exceed the viewport itself, forcing horizontal scroll. Wrapping lets the row
       fall onto multiple lines instead of overflowing. */
    flex-wrap: wrap;
    margin-left: 75px;
}

@media (max-width: 576px) {
    .captcha-row {
        margin-left: 0;
        justify-content: center;
    }
}

.btn-refresh-icon {
    height: 50px;
    width: 50px;
    border: none;
    background: #f1f1f1;
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

#txtCaptcha {
    height: 50px;
    width: 150px;
    max-width: 100%;
    padding: 0 10px;
}

.login-btn {
    height: 45px;
    width: 120px;
    max-width: 100%;
    /* This file lives at Login/assets/css/default-page.css, so the path to the image
       (originally Login/assets/Img/Btn-Login.png, relative to the page) must go up one level. */
    background-image: url('../Img/Btn-Login.png');
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    background-color: transparent;
    flex-shrink: 0;
}

.tod-box {
    flex: 1;
    background: #eaf4ff; /* Light Blue */
    border: 5px solid #b8d8ff;
    border-radius: 8px;
    padding: 20px;
    text-align: justify;
    line-height: 1.8;
}

.tod-heading {
    color: #003399;
    text-align: center;
    font-weight: 700;
}
