/* ========================================
   Application Page Styles
   ======================================== */

:root {
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #e5e5e5;
    --pure-white: #ffffff;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Page Header */
.application-header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--pure-white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.application-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.application-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Application Content */
.application-content {
    padding: var(--spacing-lg) 0;
    background-color: #f9f9f9;
}

.application-form {
    background: var(--pure-white);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--spacing-md);
}

.section-header i {
    font-size: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--pure-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Consent Box */
.consent-box {
    background: #f9f9f9;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--gold);
}

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

.checkbox-label a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin-top: var(--spacing-md);
    text-align: center;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-black);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

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

.btn-secondary {
    background: var(--dark-gray);
    color: var(--pure-white);
    margin-top: var(--spacing-sm);
}

.btn-secondary:hover {
    background: var(--primary-black);
}

/* Success Message */
.success-message {
    background: var(--pure-white);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: var(--spacing-sm);
}

.success-message h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: var(--spacing-sm);
}

.success-message p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.success-details {
    background: #f9f9f9;
    border-radius: 5px;
    padding: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.success-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-header {
        padding: 100px 0 40px;
    }

    .application-header h1 {
        font-size: 2rem;
    }

    .application-header .subtitle {
        font-size: 1rem;
    }

    .application-form {
        padding: var(--spacing-md);
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header i {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .success-message {
        padding: var(--spacing-md);
    }

    .success-icon {
        font-size: 3.5rem;
    }

    .success-message h2 {
        font-size: 1.5rem;
    }
}

/* Loading State */
.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-flex;
}

/* Input Validation States */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Required Field Indicator */
label::after {
    content: "";
}

label:has(~ input[required])::after,
label:has(~ select[required])::after,
label:has(~ textarea[required])::after {
    content: " *";
    color: #dc3545;
}

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

.application-form {
    animation: fadeIn 0.5s ease;
}

.success-message {
    animation: fadeIn 0.5s ease;
}
