/* Student Registration Form - WordPress Plugin Styles */

/* Load Local Vazirmatn Font */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300;
    src: url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    src: url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    src: url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    src: url('https://thisisfredi.com/pnr/fonts/Vazirmatn-SemiBold.woff2') format('woff2'),
         url('https://thisisfredi.com/pnr/fonts/Vazirmatn-SemiBold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    src: url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('https://thisisfredi.com/pnr/fonts/Vazirmatn-Bold.woff') format('woff');
    font-display: swap;
}

.srf-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.srf-container * {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

.srf-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 30px;
}

.srf-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 0;
}

.srf-header p {
    opacity: 0.9;
    font-size: 16px;
    margin: 0;
}

.srf-form-container {
    padding: 30px;
}

.srf-form-group {
    margin-bottom: 25px;
}

.srf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.srf-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    box-sizing: border-box;
}

.srf-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.srf-phone-verification {
    display: flex;
    gap: 10px;
    align-items: end;
}

.srf-phone-input {
    flex: 1;
}

.srf-verify-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.srf-verify-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.srf-verify-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.srf-verification-code {
    margin-top: 15px;
    display: none;
}

.srf-code-input-container {
    display: flex;
    gap: 10px;
    align-items: end;
}

.srf-code-input {
    flex: 1;
}

.srf-confirm-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.srf-confirm-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.srf-status-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.srf-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.srf-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.srf-gender-options {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.srf-gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.srf-gender-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.srf-submit-btn {
    background: #5717ED;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.srf-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.srf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.srf-admin-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.srf-admin-section h3 {
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.srf-export-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.srf-export-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.srf-export-btn.srf-danger {
    background: #dc3545;
}

.srf-export-btn.srf-danger:hover {
    background: #c82333;
}

.srf-data-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 12px;
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: white;
}

.srf-data-table th,
.srf-data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

.srf-data-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.srf-data-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.required {
    color: #dc3545;
}

.srf-loading {
    text-align: center;
    padding: 20px;
}

.srf-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: srf-spin 1s linear infinite;
}

@keyframes srf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .srf-container {
        margin: 10px;
    }
    
    .srf-form-container {
        padding: 20px;
    }
    
    .srf-phone-verification {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .srf-code-input-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .srf-gender-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .srf-data-table {
        font-size: 10px;
    }
    
    .srf-export-btn {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

/* WordPress Admin Compatibility */
.wp-admin .srf-container {
    margin: 0;
}

.wp-admin .srf-container,
.wp-admin .srf-container * {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* Global Font Override for Plugin */
#student-registration-container,
#student-registration-container * {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* Hide elements when loading */
.srf-hidden {
    display: none !important;
}
/*custom css*/
button#submitBtn {
    background-color: #3500b2;
    color: white;
    border-radius: 9px;
}

button#verifyPhoneBtn {
    border-radius: 9px;
    border: 2px solid #e1e5e9;
}

input#phone {
    text-align: right;
    border-radius: 9px;
    border: 2px solid #e1e5e9;
}

select#currentCountry {}

input#firstName {
    text-align: right;
    border-radius: 9px;
    border: 2px solid #e1e5e9;
}

input#lastName {
    text-align: right;
    border-radius: 9px;
    border: 2px solid #e1e5e9;
}