/* Simple Smart Student Form Styles */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Container */
.student-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Card */
.student-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.student-card-header {
    background: var(--primary-color);
    color: white;
    padding: 24px 32px;
    font-size: 1.5rem;
    font-weight: 600;
}

.student-card-body {
    padding: 32px;
}

/* Form Blocks */
.student-form-block {
    background: white;
    border: 1px solid var(--gray-200);
    /* border-radius: var(--border-radius); */
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.student-form-block:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.student-form-block h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* Grid Layouts */
.student-form-grid,
.student-form-grid-2,
.student-form-grid-3,
.student-form-grid-4 {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.student-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.student-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.student-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.student-form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Labels */
.student-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Inputs */
.student-form-input,
.student-form-select,
.student-form-textarea {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid var(--gray-300);
    /* border-radius: var(--border-radius); */
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: white;
    transition: var(--transition);
    font-family: inherit;
}

.student-form-input:focus,
.student-form-select:focus,
.student-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.student-form-input:hover,
.student-form-select:hover,
.student-form-textarea:hover {
    border-color: var(--gray-400);
}

.student-form-select {
    cursor: pointer;
    appearance: none;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.student-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Section Titles */
.student-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

/* Buttons */
.student-form-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.student-form-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.student-form-btn:active {
    transform: translateY(0);
}

.student-back-btn {
    background: var(--gray-600);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.student-back-btn:hover {
    background: var(--gray-700);
}

.copy-address-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-address-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Checkbox */
.student-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.student-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Helper Text */
.student-helper-text {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* Required Indicator */
.student-required {
    color: var(--danger-color);
    margin-left: 2px;
}

/* File Input */
.student-file-input {
    padding: 10px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
}

.student-file-input:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Subject Selection - Simple Cards */
.subject-info-banner {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.subject-info-banner h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.subject-info-banner p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.95;
}

.subject-category-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.subject-category-card h5 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.subject-modern-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.subject-modern-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: white;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.subject-modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.subject-modern-select:hover {
    border-color: var(--gray-400);
}

.label-icon {
    margin-right: 6px;
}

/* Subject Summary */
.subject-summary-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: 20px;
}

.subject-summary-box h6 {
    color: var(--gray-900);
    margin: 0 0 12px 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .student-form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .student-card-body {
        padding: 20px;
    }

    .student-form-block {
        padding: 16px;
    }

    .student-form-grid,
    .student-form-grid-2,
    .student-form-grid-3,
    .student-form-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .student-form-btn {
        width: 100%;
        justify-content: center;
    }

    .student-card-header {
        padding: 16px 20px;
        font-size: 1.25rem;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}