/* ============================================
   CSS Variables - Цветовая схема как у основного сайта
   ============================================ */
:root {
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --surface: #ffffff;
    --bg: #f7f8fa;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Apply-specific styles moved to css/apply.css */

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 3.5rem 0 4rem;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.06), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.06), transparent 30%),
                var(--bg);
}


.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}


.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee;
    color: var(--error);
    border: 1px solid #fdd;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.link-secondary {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-secondary:hover {
    color: var(--accent-blue);
}

/* (Profile Page styles moved to css/profile.css) */

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-error {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-pending {
    background: #ede9fe;
    color: #5b21b6;
}

/* ============================================
   Call To Action
   ============================================ */
.call-to-action {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
}

.call-to-action h3 {
    font-size: 1.45rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.call-to-action p {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.call-to-action .btn {
    margin-top: 0.35rem;
}

/* (Profile-specific Application Status, Documents List, and Profile Actions moved to css/profile.css) */

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .apply-wrapper {
        gap: 1rem;
    }

    .apply-sidebar {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .apply-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .apply-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }

    .apply-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-title {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 0.5rem;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent-blue);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
