/* Multi-step Form Styles */

.registration-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 50px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* Progress Indicator */

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.step-circle.active {
    background: #183e64;
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-circle.completed {
    background: #10B981;
    color: white;
}

.step-circle.completed::before {
    content: '✓';
    position: absolute;
    font-size: 24px;
}

.step-circle.completed .step-number {
    display: none;
}

.step-label {
    margin-top: 10px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: #183e64;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #10B981;
}

.step-line {
    width: 100px;
    height: 3px;
    background: #E5E7EB;
    margin: 0;
    align-self: flex-start;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: #10B981;
}


/* Form Sections */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1F2937;
}

.step-subtitle {
    color: #6B7280;
    font-size: 15px;
}


/* Input Styles */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    /* margin-bottom: 8px; */
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #183e64;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control.error {
    border-color: #EF4444;
}

.text-danger {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}


/* Account Type Selection */

.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.account-type-option {
    position: relative;
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.account-type-label {
    display: block;
    padding: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
}

.account-type-option input[type="radio"]:checked+.account-type-label {
    border-color: #183e64;
    background: #EEF2FF;
    color: #183e64;
}


/* Title Selection */

.title-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.title-option {
    position: relative;
}

.title-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.title-label {
    display: block;
    padding: 12px 8px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 16px;
}

.title-option input[type="radio"]:checked+.title-label {
    border-color: #183e64;
    background: #EEF2FF;
    color: #183e64;
}


/* Name Fields */

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* Buttons */

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #183e64;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #183e64;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 62, 100, 0.3);
}

.btn-primary:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #183e64;
    border: 2px solid #183e64;
}

.btn-secondary:hover {
    /* background: #EEF2FF; */
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 30px;
}

.btn-submit:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}


/* Password Field with Eye Icon */

.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 16px;
    top: 44px;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 18px;
}

.password-field .toggle-password:hover {
    color: #183e64;
}


/* Footer Links */

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    color: #6B7280;
}

.form-footer a {
    color: #183e64;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}


/* Checkbox */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    padding: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #183e64;
}

.checkbox-group label,
.checkbox-group span {
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.checkbox-group a {
    color: #183e64;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}


/* Password requirement text */

.password-requirement {
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
}


/* Company fields (hidden by default) */

.company-fields {
    display: none;
    margin-top: 5px;
    padding-top: 0px;
}

.company-fields.show {
    display: block;
}


/* Date of Birth field */


/* .dob-section {
  margin-top: 5px;
  padding-top: 20px;
} */

.dob-section.hidden {
    display: none;
}

.dob-info {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 10px;
}


/* Newsletter Radio Buttons */

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"],
.radio-option .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
    position: relative;
    top: 0;
    accent-color: #183e64;
}

.radio-option label {
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}


/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
}

.close {
    font-size: 32px;
    font-weight: bold;
    color: #6B7280;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #EF4444;
}

.modal .container {
    padding: 30px;
}

.modal h5 {
    color: #1F2937;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
}

.modal p,
.modal ol li {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
}

.modal ol {
    padding-left: 20px;
}


/* reCAPTCHA */

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}


/* Responsive Design */


/* Mobile devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) {
    .registration-container {
        margin: 10px;
        padding: 25px 15px;
        max-width: 100%;
    }
    .step-title {
        font-size: 22px;
    }
    .step-subtitle {
        font-size: 13px;
    }
    .progress-indicator {
        margin-bottom: 25px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .step-line {
        width: 60px;
        height: 2px;
        margin-top: 17px;
    }
    .step-label {
        font-size: 10px;
        white-space: normal;
        max-width: 70px;
        line-height: 1.2;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
    .name-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .account-type-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .account-type-label {
        padding: 15px;
        font-size: 16px;
    }
    .title-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .title-label {
        padding: 10px 6px;
        font-size: 13px;
    }
    .button-group {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
    }
    .checkbox-group {
        gap: 10px;
    }
    .checkbox-group label {
        font-size: 13px;
        line-height: 18px;
    }
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 0;
    }
    .modal-header {
        padding: 15px 20px;
    }
    .modal .container {
        padding: 20px;
    }
    .radio-group {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }
    .radio-option {
        width: 100%;
    }
    .radio-option label {
        margin: 0;
        padding-left: 0;
    }
}


/* Tablet devices (landscape phones, 576px to 768px) */

@media (min-width: 576px) and (max-width: 767.98px) {
    .registration-container {
        margin: 20px auto;
        padding: 35px 25px;
        max-width: 540px;
    }
    .step-title {
        font-size: 26px;
    }
    .progress-indicator {
        margin-bottom: 35px;
    }
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    .step-line {
        width: 80px;
        margin-top: 22px;
    }
    .step-label {
        font-size: 11px;
    }
    .name-fields {
        grid-template-columns: 1fr 1fr;
    }
    .title-selector {
        grid-template-columns: repeat(4, 1fr);
    }
    .account-type-selector {
        grid-template-columns: 1fr 1fr;
    }
    .button-group {
        flex-direction: row;
    }
}


/* Medium devices (tablets, 768px to 991px) */

@media (min-width: 768px) and (max-width: 991.98px) {
    .registration-container {
        margin: 30px auto;
        padding: 40px 30px;
        max-width: 720px;
    }
    .step-circle {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }
    .step-line {
        width: 90px;
        margin-top: 23px;
    }
}


/* Large devices (desktops, 992px and up) */

@media (min-width: 992px) {
    .registration-container {
        max-width: 600px;
    }
    .step-line {
        width: 100px;
    }
}

.error {
    color: #EF4444;
    display: none;
}

.checkbox-label input {
    margin-left: 8px;
    width: 16px;
    height: 16px;
}


/* International Phone Input Styling */

.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    position: absolute;
}

#phone {
    width: 100% !important;
    /*  padding-left: 52px !important; */
}

#swal2-title {
    font-size: 19px;
}

.form-group {
    margin-bottom: 1.0rem;
}

.form-group input,
.form-group select {
    width: 100%;
    /*  padding: 0.875rem; */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form .main-form input {
    padding-left: 10px;
}


/* .form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}
 */


/* .form-group small {
    display: block;
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
 */


/* .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
} */

.button-group.button-group-split {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.button-group.button-group-split .btn {
    flex: 1;
}

@media (max-width: 576px) {
    .button-group.button-group-split {
        gap: 6px;
    }
    .button-group.button-group-split .btn {
        font-size: 13px;
        padding: 10px 8px;
    }
}