/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

.registration-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h2 {
    color: #1e40af; /* Deep Blue */
    text-align: center;
    margin-bottom: 5px;
}

h2 + p {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

h3 {
    border-left: 4px solid #3b82f6;
    padding-left: 10px;
    color: #334155;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Padding valla width expand avvakunda */
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkboxes */
.disease-check {
    margin-right: 5px;
    accent-color: #2563eb;
}

/* Buttons */
button#mainSubmitBtn {
    transition: background 0.3s, transform 0.2s;
}

button#mainSubmitBtn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

button#mainSubmitBtn:active {
    transform: translateY(0);
}

/* OTP Section Animation */
#otpSection {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .registration-container {
        padding: 20px;
    }
}

/* Step-by-Step Logic */
.form-step {
    display: none; /* Modalatlo anni hide chesthunnam */
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block; /* Active unnadi mathrame kanipisthundi */
}

/* Navigation Buttons Styling */
.next-btn, .prev-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.next-btn {
    background-color: #3b82f6;
    color: white;
    float: right;
}

.prev-btn {
    background-color: #e2e8f0;
    color: #475569;
    margin-right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); } 
    to { opacity: 1; transform: translateX(0); }
}

footer {
    display: none;
}

.submit-btn,
.otp-verify-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.otp-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.otp-input-div {
    margin-top: 12px;
}

.otp-input-div small {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
}

.otp-input {
    letter-spacing: 0.2em;
    text-align: center;
}