@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --secondary: #64748B;
    --accent: #4F46E5;
    --background: #F1F5F9;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;
    --glass: rgba(255, 255, 255, 0.9);
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #FFFFFF;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-wrapper {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Floating Shapes Removed for Clean Look */

.header-compact h1 {
    font-size: 2.2rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.3s ease;
}

.form-group:focus-within {
    transform: translateX(5px);
}

label {
    font-size: 0.85rem;
    font-weight: 750;
    color: #1e40af;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input, select, textarea {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
}

/* Radio Button Styling */
input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
}

input[type="radio"]:checked {
    border-color: var(--primary);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Priority Section */
h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-weight: 700;
}

h3 i {
    color: var(--primary);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Checkbox Style */
.checkbox-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s;
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Animations for form sections */
.form-section {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 2rem 1.5rem; }
}

/* Toast Notification Styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.toast {
    background: var(--surface);
    border-left: 4px solid var(--error);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Professional Segmented Control (Sliding Switch) */
.mode-switch {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    margin-bottom: 0.8rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    max-width: 100%;
}

.mode-switch label {
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    margin: 0 !important;
    display: block;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
}

.mode-switch input[type="radio"] {
    display: none !important;
}

.mode-switch input[type="radio"]:checked + label {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 10px var(--primary-glow);
}

.mode-switch label:hover:not(.active) {
    color: #fff;
    background: rgba(79, 70, 229, 0.05);
}

.priority-row {
    display: grid;
    grid-template-columns: 140px auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.priority-row:hover {
    background: rgba(79, 70, 229, 0.03);
    border-color: var(--primary-light);
}

.priority-label {
    margin: 0 !important;
    font-weight: 750;
    color: #1e40af;
}

/* Force container to boundary */
.priority-row > div:last-child {
    min-width: 0;
}

/* Truncate long course names to keep layout locked */
.priority-row select {
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .priority-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }

    .mode-switch {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mode-switch label {
        min-width: 0;
        width: 100%;
    }
}

