/* Modal styling to match the image */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    max-width: 500px;
    /* margin-top: 120px; */
}

/* @media (max-width: 575.98px) {
    .modal-dialog {
        margin-top: 0 !important;
    }
} */

.modal-content {
    border-radius: 8px;
    border: none;
    background: #ffffff;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.modal-header {
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: none;
    position: relative;
}

.modal-body {
    padding: 0.5rem 1.5rem 1rem;
}

.modal-footer {
    /* border-top: 1px solid #e9ecef; */
    padding: 1rem 1.5rem;
}

/* Progress Bar */
.progress-container {
    width: calc(100% - 40px);
    /* Adjust width to not overlap with close button */
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 33%;
    /* Initial progress for step 1 */
    background-color: #024090 !important;
    border-radius: 4px;
    transition: width 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* Close Button */
.btn-close {
    position: absolute;
    top: 0.5rem !important;
    right: 0.5rem !important;
    font-size: 0.8rem;
}

/* Step Title */
.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* Radio button styling */
.service-option {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.service-option:last-child {
    border-bottom: none;
}

.service-option .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    margin-right: 1rem;
    cursor: pointer;
    position: relative;
    top: -2px;
    transition: border-color 0.2s, background-color 0.2s;
}

.service-option .form-check-input:checked {
    background-color: #024090;
    border-color: #024090;
}

.service-option .form-check-input:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-option .form-check-label {
    font-size: 1rem;
    color: #343a40;
    cursor: pointer;
    flex-grow: 1;
}

/* "Other" input field */
.other-input {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    width: 100%;
    color: #495057;
}

/* Navigation Buttons */
.btn-continue {
    background-color: #024090;
    color: white;
    /* padding: 0.75rem 1.5rem; */
    /* border-radius: 8px; */
    /* font-weight: 500; */
    width: 130px;
}

.btn-continue:hover {
    background-color: #0b5ed7;
    color: white;
}

.btn-back {
    width: 130px;
    outline: none !important;
    background-color: #fff !important;
    color: #495057;
    border: 1px solid #adb5bd !important;
}

.btn-back:hover {
    background-color: #adb5bd !important;
    outline: none !important;
}

.btn-cancel {
    width: 100px;
    outline: none !important;
    background-color: #fff !important;
    color: #495057;
    border: 1px solid #adb5bd !important;
}

.btn-cancel:hover {
    background-color: #adb5bd !important;
    outline: none !important;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #024090;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.btn-modal {
    background-color: #024090 !important;
    color: white !important;
    border: none;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.btn-modal:hover {
    background-color: #0b5ed7 !important;
    outline: none !important;
}

.btn-modal:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2) !important;
}

/* Success Screen */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 5% auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* Simple fade-in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}