/* Application Page Styles */
:root {
    --primary: #e6e6e6;
    --primary-light: #f5f5f5;
    --primary-dark: #b3b3b3;
    --secondary: #1a1a1a;
    --accent: #b39b7d;
    --accent-light: #d4c4a9;
    --accent-dark: #8a755a;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --background: #121212;
    --card-bg: rgba(33, 33, 36, 0.9);
    --input-bg: rgba(45, 45, 50, 0.8);
    --input-border: rgba(221, 208, 192, 0.2);
    --text-muted: #a0a0a0;
    --text: #e6e6e6;
    --border: rgba(221, 208, 192, 0.1);
    --bg: #121212;
    --overlay: rgba(0, 0, 0, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    padding: 20px;
    min-height: 100vh;
    background-image: linear-gradient(135deg, #0f0f13 0%, #1a1a1f 100%);
    background-attachment: fixed;
}

.application-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.application-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 2;
}

.application-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.application-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.application-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.application-header h1 {
    color: var(--primary);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.application-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.requirements-box {
    background: linear-gradient(145deg, rgba(33, 33, 36, 0.8), rgba(25, 25, 30, 0.9));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.requirements-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 155, 125, 0.05), transparent);
    pointer-events: none;
}

.requirements-box h2 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.4rem;
}

.requirements-list {
    padding-left: 1.2rem;
    margin: 0;
}

.requirements-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-section {
    background: linear-gradient(145deg, rgba(33, 33, 36, 0.8), rgba(25, 25, 30, 0.9));
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    opacity: 0.8;
    transition: var(--transition);
}

.form-section h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: rgba(45, 45, 50, 0.7);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 125, 101, 0.3);
    background: rgba(50, 50, 55, 0.8);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin: 0 -0.5rem;
}

.half-width {
    flex: 1;
    min-width: 0;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    z-index: -1;
    transition: var(--transition);
    opacity: 1;
}

.btn:hover::before {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(179, 155, 125, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(179, 155, 125, 0.3);
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--primary-light);
    border-color: var(--accent);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Form Validation */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error) !important;
    background: rgba(244, 67, 54, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 0.8rem 1rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid var(--error);
    position: relative;
    padding-left: 2.5rem;
}

.error-message::before {
    content: '!';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.form-group.error .error-message {
    display: block;
}

/* Success State */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success) !important;
    background: rgba(76, 175, 80, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.success-message {
    color: var(--success);
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--success);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    padding-left: 3.5rem;
    box-shadow: 0 3px 15px rgba(76, 175, 80, 0.1);
}

.success-message::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Loading State */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(179, 155, 125, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--accent-light);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .application-container {
        max-width: 95%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .application-container {
        margin: 0.5rem auto;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-section {
        padding: 1.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .half-width {
        width: 100%;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .requirements-box {
        padding: 1.2rem;
    }
    
    .application-header h1 {
        font-size: 1.8rem;
    }
    
    .application-subtitle {
        font-size: 1rem;
    }
}

/* Animation for form sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered animations */
.form-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* Custom Scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--input-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
