/* General Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px; /* Add padding for small screens */
    box-sizing: border-box;
}

/* Form Container */
.container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%; /* Use full width up to max-width */
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="password"] { /* Added password for future use */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Input hint/small text */
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
}


/* Button Styling */
button[type="submit"] {
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}
button[type="submit"]:active {
    transform: scale(0.98);
}
button[type="submit"]:disabled {
    background-color: #a0cfff; /* Lighter blue when disabled */
    cursor: not-allowed;
}


/* Message Styling */
.error-message, .success-message, .info-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid transparent;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.info-message {
    background-color: #e2e3e5;
    color: #383d41;
    border-color: #d6d8db;
}
.info-message strong {
    color: #004085; /* Highlight mobile number */
}


/* Resend OTP Section */
.resend-container {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

#resendBtn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 5px; /* Add slight padding */
    font-size: inherit; /* Use parent font size */
    font-weight: 600;
}

#resendBtn:disabled {
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: none;
}

#timer {
    font-weight: normal; /* Normal weight for timer text */
    color: #6c757d; /* Grey color for timer */
    margin-left: 5px; /* Space before timer */
}
#countdown {
    font-weight: bold; /* Bold countdown number */
}

/* Change Mobile Link */
.change-mobile {
    font-size: 0.85em;
    text-align: center;
    margin-top: 15px;
}

.change-mobile a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.change-mobile a:hover {
    text-decoration: underline;
}


/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
        margin-top: 20px; /* Add some top margin on small screens */
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    button[type="submit"] {
        padding: 14px; /* Slightly larger tap target */
    }
}