/* --- Application Section Layout --- */
.app-section {
    width: 100%;
    padding: 140px 0;
    background-color: #ffffff;
}

.app-container {
    width: 820px;
    margin: 0 auto;
    text-align: left;
}

/* --- Academic Header --- */
.app-header {
    margin-bottom: 80px;
}

.app-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #86868b;
    margin-bottom: 16px;
}

.app-intro-block {
    margin-top: 32px;
    max-width: 600px;
}

.app-intro-block .discovery-text {
    margin-bottom: 20px;
    color: #424245;
    line-height: 1.6;
    font-size: 19px;
}

/* --- Form Architecture --- */
.app-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 80px 0;
}

.app-legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1d1d1f;
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d2d2d7;
    width: 100%;
    display: block;
}

.app-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* --- Input Aesthetics --- */
.app-label {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.app-input, 
.app-select, 
.app-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 18px 20px;
    color: #1d1d1f;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-input::placeholder, 
.app-textarea::placeholder {
    color: #a1a1a6;
}

.app-input:focus, 
.app-textarea:focus {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.app-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2003/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

/* --- Submission Area --- */
.app-footer {
    padding-top: 40px;
    border-top: 1px solid #d2d2d7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.app-disclaimer {
    font-size: 14px;
    color: #86868b;
    line-height: 1.5;
    max-width: 480px;
}

.app-submit-btn {
    appearance: none;
    background: #1d1d1f;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 18px 48px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-submit-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Success Page Styles --- */
#page-thanks .app-section {
    background-color: #ffffff;
}

#page-thanks .hero-headline {
    color: #1d1d1f;
    margin-top: 10px;
}

#page-thanks .app-intro-block {
    margin-top: 48px;
    max-width: 650px;
}

#page-thanks .primary-msg {
    color: #1d1d1f;
    font-weight: 500;
}

#page-thanks .secondary-msg {
    color: #86868b;
}

#page-thanks .status-block {
    margin-top: 40px;
    background: #f5f5f7;
    padding: 30px;
    border-radius: 18px;
}

#page-thanks .status-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1d1d1f;
    margin-bottom: 12px;
    font-weight: 700;
}

#page-thanks .status-text {
    font-size: 17px;
    color: #424245;
    line-height: 1.6;
    margin: 0;
}

#page-thanks .app-footer {
    border-top: 1px solid #d2d2d7;
    margin-top: 60px;
    padding-top: 40px;
    border-bottom: none;
    align-items: flex-start;
}

/* --- Brand Buttons --- */
.btn-solid-gold {
    padding: 2rem 5rem;
}

/* --- Mobile View --- */
@media (max-width: 734px) {
    .app-section {
        padding: 80px 0;
    }

    .app-container {
        width: 275px;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;   
    }

    .app-header {
        margin-bottom: 40px;
    }

    .app-intro-block .discovery-text {
        font-size: 17px;
    }

    .app-form-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .app-input, 
    .app-select, 
    .app-textarea {
        font-size: 16px; 
        padding: 16px 15px;
    }

    .app-select {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .app-legend {
        margin-bottom: 30px;
    }

    .app-footer {
        align-items: center;
        width: 100%;
    }

    .app-submit-btn,
    .btn-solid-gold {
        width: 100%;
        padding: 18px 0;
        box-sizing: border-box;
    }

    #page-thanks .app-intro-block {
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
    }
}