/* Main color from your screenshot */
:root {
    --sbs-blue: #0d47a1; /* A standard blue, adjust as needed */
}

.sbs-auth-container {
    max-width: 500px;
    margin: 2em auto;
    padding: 2.5em;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.sbs-auth-title {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-top: 0;
    margin-bottom: 1em;
}

/* Tab styles */
.sbs-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2em;
}

.sbs-tab-link {
    flex: 1;
    padding: 1em;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.sbs-tab-link:hover {
    color: #333;
}

.sbs-tab-link.active {
    color: var(--sbs-blue);
}

.sbs-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Sits on top of the border */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sbs-blue);
}

/* Form styles */
.sbs-form p {
    margin-bottom: 1.5em;
}

.sbs-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #444;
}

.sbs-form input[type="text"],
.sbs-form input[type="tel"],
.sbs-form input[type="email"],
.sbs-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* Important! */
    transition: border-color 0.3s ease;
}

.sbs-form input:focus,
.sbs-form textarea:focus {
    border-color: var(--sbs-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.2);
}

/* --- Fixed Phone Input Alignment --- */

.sbs-phone-input {
    display: flex; /* Puts them side-by-side */
    width: 100%;
    box-sizing: border-box;
}

/* The +91 Box */
.sbs-phone-input span {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-right: none; /* Remove the line between them */
    border-radius: 6px 0 0 6px;
    padding: 0 15px;
    font-weight: 600;
    color: #555;
    height: 48px; /* FORCE fixed height */
    box-sizing: border-box;
}

/* The Input Field */
.sbs-phone-input input[type="tel"],
.sbs-phone-input input[type="text"] {
    flex-grow: 1; /* Fill the rest of the space */
    border: 1px solid #ccc !important;
    border-radius: 0 6px 6px 0 !important;
    height: 48px !important; /* FORCE exact same height */
    margin: 0 !important; /* Remove any theme margins */
    padding: 0 15px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Focus state to make it look like one box */
.sbs-phone-input input:focus {
    border-color: var(--sbs-blue) !important;
    outline: none;
}

/* Button */
.sbs-auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--sbs-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sbs-auth-btn:hover {
    background-color: #0b3a82;
}

.sbs-auth-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* OTP Button */
#verify-otp-btn {
    margin-top: 1em;
}

/* Register fields (hidden on login) */
.sbs-register-fields {
    display: block; /* Show by default (Register tab) */
}

/* Message styles */
#sbs-auth-message {
    margin: 1em 0;
    padding: 1em;
    border-radius: 6px;
    display: none; /* Hidden by default */
}
#sbs-auth-message.error {
    background: #ffe0e0;
    border: 1px solid #ff5252;
    color: #c62828;
}
#sbs-auth-message.success {
    background: #e0f2f1;
    border: 1px solid #00bfa5;
    color: #004d40;
}

/* Mobile Friendly */
@media (max-width: 600px) {
    .sbs-auth-container {
        padding: 1.5em;
        margin: 1em;
    }
    .sbs-auth-title {
        font-size: 1.5em;
    }
}

/* --- NEW: 5-Star Rating Styles --- */
.sbs-star-rating {
    display: flex;
    flex-direction: row-reverse; /* This makes the stars light up left-to-right */
    justify-content: center;
    font-size: 2.5em;
    padding: 0.2em 0;
}
.sbs-star-rating input {
    display: none; /* Hide the radio buttons */
}
.sbs-star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}
.sbs-star-rating input:checked ~ label, /* The selected star and all stars to its "right" (left in HTML) */
.sbs-star-rating label:hover,
.sbs-star-rating label:hover ~ label {
    color: #f59e0b; /* Gold star color */
}