/* Thiran Academy Registration Form Styles */

.thiran-registration-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.thiran-registration-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    background: #f9f9f9;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    border-color: #0073aa;
    /* WordPress default blue, adapts well */
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
    outline: none;
}

.form-group input[type="file"] {
    padding: 10px 0;
}

/* Cropper Container */
.img-container {
    max-width: 100%;
    max-height: 400px;
    /* Re-added to prevent massive images */
    overflow: hidden;
    /* Ensure no spillover */
    margin-top: 20px;
    margin-bottom: 30px;
    /* Increased space below */
    display: none;
    /* Hidden by default until image selected */
    position: relative;
    /* Ensure proper stacking */
}

.img-container img {
    max-width: 100%;
}

.preview-container {
    margin-top: 20px;
    display: none;
}

.preview {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #0073aa;
    margin: 0 auto;
}

.form-submit {
    margin-top: 50px;
    /* Increased margin further */
    text-align: center;
    clear: both;
    /* Ensure it stays below floated elements if any */
    position: relative;
    z-index: 10;
}

.form-submit button {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.form-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.4);
}

.form-submit button:active {
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 600px) {
    .thiran-registration-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
}