/* Registration Form Custom Styling */

/* Custom styling for business signup form */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Validation error styling */
.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}

/* Password Requirements List Styling */
.password-requirements-list {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.requirement-text {
    transition: all 0.2s ease;
}
.input-group .btn {
    z-index: 0 !important;
}
.requirement-item.valid .requirement-icon {
    color: #28a745;
}

.requirement-item.valid .requirement-text {
    color: #28a745;
    font-weight: 600;
}

.requirement-item.invalid .requirement-icon {
    color: #dc3545;
}

.requirement-item.invalid .requirement-text {
    color: #dc3545;
    font-weight: 500;
}

.requirement-item.valid .requirement-icon::before {
    content: "✅";
}

.requirement-item.invalid .requirement-icon::before {
    content: "⭕";
}

/* Password Toggle Button Styling */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
    background-color: #f8f9fa;
    border-left: none;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus {
    border-right: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group .form-control:focus + .btn-outline-secondary {
    border-color: #007bff;
}

/* Password toggle icon styling */
#passwordToggleIcon,
#confirmPasswordToggleIcon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    width: 16px;
    text-align: center;
}

/* Button styling */
#btnRegister {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Disabled button styling */
#btnRegister:disabled,
#btnRegister.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    opacity: 0.65;
    cursor: not-allowed;
}

#btnRegister:disabled:hover,
#btnRegister.btn-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    opacity: 0.65;
}

/* Enabled button styling */
    #btnRegister.btn-primary {
        background-color: #27276c !important;
        border-color: #27276c !important;
        color: #ffffff !important;
        opacity: 1;
        cursor: pointer;
    }

#btnRegister.btn-primary:hover {
    background-color: #1a1a4a !important;
    border-color: #1a1a4a !important;
    color: #ffffff !important;
}

/* Link styling */
.link-primary {
    color: #e91e63 !important;
}

.link-primary:hover {
    color: #c2185b !important;
}

/* Country Code Selector Styling */
.country-code-select {
    flex: 0 0 auto;
    width: 120px;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.country-code-select + .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-results__option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.select2-results__option img {
    margin-right: 8px;
}

/* Form spacing */
.fv-row {
    margin-bottom: 1rem;
}

/* Flag styling */
.input-group-text img {
    width: 20px;
    height: 20px;
}

/* Terms and Conditions Link Styling */
.terms-link {
    color: #e91e63 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-link:hover {
    color: #c2185b !important;
    text-decoration: underline;
}
