/* Tamkeen Trainer Registration Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Form Logo */
.tamkeen-form-logo {
    text-align: center;
    margin-bottom: 30px;
}

.tamkeen-form-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tamkeen-trainer-form {
    font-family: 'Poppins', sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.trainer-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 30px 0;
    text-align: center;
}

.trainer-registration-form {
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* Labels */
.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Input Fields */
.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Select Dropdown */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    color: #0066cc;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #0066cc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.submit-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .tamkeen-trainer-form {
        padding: 20px;
    }

    .trainer-form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input,
    .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .submit-button {
        font-size: 15px;
        padding: 12px 30px;
    }

    .checkbox-label,
    .radio-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .trainer-form-title {
        font-size: 20px;
    }

    .form-input,
    .form-select,
    .submit-button {
        font-size: 13px;
    }
}

/* Loading State */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Field Validation States */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Custom Scrollbar for Select */
.form-select::-webkit-scrollbar {
    width: 8px;
}

.form-select::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-select::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.form-select::-webkit-scrollbar-thumb:hover {
    background: #555;
}
