/**
 * Instructor Registration Form Styles
 */

.lsim-registration-wrapper {
    max-width: 800px;
    margin: 15px auto;
    padding: 15px;
}

.lsim-registration-wrapper h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.lsim-registration-wrapper > p {
    color: #333;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.lsim-registration-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form Sections */
.lsim-registration-form .lsim-form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.lsim-registration-form .lsim-form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.lsim-registration-form .lsim-form-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    display: inline-block;
}

/* Form Rows */
.lsim-form-row {
    margin-bottom: 15px;
}

.lsim-form-row:last-child {
    margin-bottom: 0;
}

.lsim-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lsim-form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .lsim-form-row-2col,
    .lsim-form-row-3col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Form Fields */
.lsim-form-field {
    display: flex;
    flex-direction: column;
}

.lsim-form-field label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.lsim-form-field label .required {
    color: #d63638;
}

.lsim-form-field input[type="text"],
.lsim-form-field input[type="email"],
.lsim-form-field input[type="tel"],
.lsim-form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lsim-form-field input:focus,
.lsim-form-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.lsim-form-field input.error,
.lsim-form-field select.error {
    border-color: #d63638;
}

.lsim-field-hint {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

/* Signature Field */
.lsim-signature-input {
    font-family: inherit !important;
    font-size: 16px !important;
    padding: 12px !important;
    border: 2px dashed #0073aa !important;
    background: #f9fbfc;
}

.lsim-signature-input:focus {
    border-style: solid !important;
    background: #fff;
}

.lsim-signature-consent {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 8px 0 0 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    font-style: italic;
}

/* Submit Button */
.lsim-form-actions {
    margin-top: 25px;
    text-align: center;
}

.lsim-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lsim-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.lsim-btn-primary:hover {
    background: #005a87;
}

.lsim-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
#lsim-registration-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

#lsim-registration-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#lsim-registration-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Turnstile widget */
.lsim-registration-form #lsim-reg-turnstile-widget {
    margin: 15px auto;
    display: flex;
    justify-content: center;
}
