﻿/* Form Container */
.form-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    font-family: 'Noto Sans Tamil', Arial, sans-serif;
}

/* Form Title */
.form-header .title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #009688;
    margin-bottom: 25px;

}

/* Flex row for label + input */
.form-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* vertical alignment */
    gap: 15px;
    margin-bottom: 12px;
}

/* Label styling */
.td-label {
    flex: 0 0 200px; /* fixed width */
    font-size: 1rem;
    font-weight: 500;
    color: #34495e;
    display: flex;
    align-items: center; /* vertical center */
}

/* Input container */
.td-input {
    flex: 1;
}

/* Textbox & dropdown */
.textbox, .dropdown, .textbox.otp, .file-upload {
    width: 100%;
    height: 46px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
    background-color: #fdfdfd;
}

    /* Input focus */
    .textbox:focus, .dropdown:focus {
        border-color: #009688;
        outline: none;
        box-shadow: 0 0 8px rgba(0,150,136,0.25);
    }

    /* Small input */
    .textbox.small {
        width: 100px;
        text-align: center;
    }

    /* Wide input */
    .textbox.wide {
        width: 550px;
    }

    /* OTP field */
    .textbox.otp {
        width: 140px;
        display: inline-block;
    }

/* Notes below inputs */
.note {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 1px;
}

/* OTP title */
.otp-title {
    font-weight: 600;
    color: #009688;
    font-size: 1rem;
    display: block;
    margin-top: 8px;
}

/* File Upload */
.file-upload {
    height: 46px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1.5px solid #ccc;
    background-color: #fdfdfd;
    cursor: pointer;
    font-size: 1rem;
}

/* Success message */
.success-msg {
    color: green;
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Buttons */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
    min-width: 140px;
    text-align: center;
}

    .btn.submit {
        background: linear-gradient(135deg, #009688, #00695c);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

        .btn.submit:hover {
            background: linear-gradient(135deg, #26a69a, #004d40);
        }

    .btn.cancel {
        background: #e74c3c;
    }

        .btn.cancel:hover {
            background: #c0392b;
        }

/* Show password checkbox */
#chkShowPassword {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .td-label, .td-input {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 8px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
