/* ===== Step Progress Bar (Circular) ===== */

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.top-bar .dropdown ul li a:hover,
.top-bar .dropdown ul li a:focus {
    background: linear-gradient(90deg, rgba(88, 198, 183, 1) 0%, rgba(88, 105, 161, 1) 100%);
    color: #fff;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #838383ff;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    min-height: 100px;
    padding: 0 16px;
}

.step .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #505050ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
}

.step.completed .circle {
    background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
    color: #fff;
}

.step.active .circle {
    background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
    color: #fff;
}

.step.completed:after,
.step.active:after {
    content: "";
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
    position: absolute;
    top: 16px;
    left: 0;
    z-index: -1;
}

.step small {
    display: block;
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .stepper {
        /* flex-direction: column; */
        align-items: flex-start;
    }
    .step {
        width: 100%;
        text-align: left;
    }
    .sidebar {
        top: 68px;
        z-index: 9;
    }
    .form-label {
        color: #fcf7f7ff;
        font-size: 14px;
        margin-bottom: 8px;
    }
}

.btn-signin {
    background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.white-space-nowrap {
    white-space: nowrap;
}


/* Professional styling for yes/no radio buttons */

.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #5eb8a6;
    background-color: #1e1e1e;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #5eb8a6;
    border-color: #5eb8a6;
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(94, 184, 166, 0.5);
}

.form-check-label {
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
}

.form-check-label:hover {
    color: #5eb8a6;
}

@media (max-width: 1024px) {
    .step:after {
        content: "";
        position: absolute;
        top: 17px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #838383ff;
        transform: translateY(-50%);
        z-index: 1;
    }
    .step {
        padding: 0 16px;
    }
    .stepper {
        display: flex;
        justify-content: space-between;
        position: relative;
        overflow-y: auto;
    }
    .step .circle {
        z-index: 9;
        position: relative;
    }
    .step.completed:after,
    .step.active:after {
        content: "";
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%);
        position: absolute;
        top: 17px;
        left: 0;
        z-index: -1;
    }
    .btn_flex_gap {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.error {
    color: red;
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.form-check {
    margin-bottom: 24px;
    position: relative;
}

.UserWelcome {
    /* color: linear-gradient(90deg, #5eb8a6 0%, #7b9cd8 100%); */
    color: #5eb8a6;
}

.text-danger {
    --bs-text-opacity: 1;
    color: #ff0000 !important;
}


/* 21/11/25 */

span.error {
    min-width: 600px;
    position: absolute;
    bottom: -23px;
    left: 0;
    font-size: 14px;
    font-weight: 400;
    max-width: 100%;
}

textarea.form-control {
    font-size: 14px;
}

.form-control,
.form-select {
    font-size: 14px;
}

.form-label {
    font-size: 14px !important;
}

.btn_flex_gap button {
    font-size: 14px !important;
}


/* Success Modal Styles */

#successModal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#successModal .fas {
    font-size: 1.2rem;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}


/* Add this to your main CSS file if you don't use Bootstrap for spinners */

.loader {
    border: 4px solid #f3f3f3;
    /* Light grey background */
    border-top: 4px solid #3498db;
    /* Blue spinner color */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    /* Keep the span visible when active */
    margin-right: 5px;
    /* Spacing between spinner and text */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body {
    background-color: #1a1a1a;
    color: white;
    font-family: 'Inter', sans-serif;
}

.registration-card {
    background-color: #000000;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 30px 80px #552323cc border: 1px solid #2b2b2b;
    position: relative;
    overflow: hidden;
}


/* Unique Accent Bar at Top of Card */

.registration-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #5eb8a6, #4A90E2);
}


/* Modern Stepper Logic */

.stepper .step.active .circle {
    background-color: #5EB8A6;
    border-color: #5EB8A6;
    transform: scale(1.1);
    transition: 0.3s;
}

.stepper .step.completed .circle {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.form-control {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    padding: 14px;
}

.form-control:focus {
    background: #111;
    border-color: #5EB8A6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(94, 184, 166, 0.1);
}


/* Modernized Profile ID Card Design */

.profile-id-card {
    background: linear-gradient(145deg, #111, #050505);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.preview-img {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    /* Squircle look */
    border: 2px solid #5EB8A6;
    margin-bottom: 20px;
    object-fit: cover;
    background: #222;
}

.id-badge {
    display: inline-block;
    background: rgba(94, 184, 166, 0.1);
    color: #5EB8A6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.btn-action {
    background: linear-gradient(90deg, rgba(88, 198, 183, 1) 0%, rgba(88, 105, 161, 1) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: linear-gradient(90deg, rgba(88, 198, 183, 1) 100%, rgba(88, 105, 161, 1) ○0%);
    transform: translateY(-2px);
}


/* Custom styling for Step 3 radio buttons */

.form-check-input:checked {
    background-color: #5EB8A6;
    border-color: #5EB8A6;
}

.form-select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


/* Match the soft teal glow for Step 3 inputs */

#step3 .form-control:focus {
    box-shadow: 0 0 0 4px rgba(94, 184, 166, 0.15);
}

#pImg {
    width: 100px;
    /* Adjust based on your card design */
    height: 100px;
    object-fit: cover;
    /* This prevents the image from stretching */
    border-radius: 50%;
    /* Makes it a circle */
    border: 2px solid #ddd;
}


/* Removes the double-border look between input and button */

.input-group .form-control:focus {
    z-index: 3;
}

.toggle-password {
    background-color: transparent !important;
    border-color: #dee2e6;
    /* Match Bootstrap default border */
    color: #6c757d;
}

.toggle-password:hover {
    background-color: #f8f9fa !important;
    color: #0D8ABC;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    /* The spinning part */
    display: inline-block;
    animation: rotation 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Optional: Subtle fade for text when loading */

.loading-opacity {
    opacity: 0.6;
}

span.text-danger.small {
    display: block !important;
    margin-top: 5px;
    width: 100%;
}


/* Smooth scale-in animation */

.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}


/* Button Hover Effect */

.btn-lg:hover {
    background: #049a8b !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(5, 171, 155, 0.4) !important;
}


/* Modal Backdrop Softness */

.modal-backdrop.show {
    opacity: 0.8;
    backdrop-filter: blur(8px);
    /* Requires modern browser support */
}

.input-group .btn {
    position: absolute;
    z-index: 9;
    right: 0;
    top: 0px;
    height: 51px;
    border: 0;
}

div#expirationSection span {
    max-width: 50%;
}

.card-body nav span,
.card-body nav a {
    background: #000 !important;
    border: 0;
    text-decoration: none;
    color: #fff;
}

.form-text {
    margin-top: .25rem;
    font-size: .875em;
    color: rgb(191 199 207 / 75%);
}


/* Add this to your providerregistration.css if needed */

.form-control:disabled,
.form-select:disabled {
    background-color: #b2bbc5 !important;
    color: #6c757d !important;
    cursor: not-allowed;
}


}