/* === Apply Page Layout === */
.apply-page {
    background: #F2EDE4;
}

/* === Page Header === */
.apply-header {
    padding: 6rem 1.5rem 3.5rem;
    text-align: center;
    background: #EDE7DC;
    position: relative;
    overflow: hidden;
}

.apply-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(200, 75, 49, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.apply-header-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.apply-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #2a2520;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.apply-subtitle {
    font-size: 1rem;
    color: #6a6158;
    line-height: 1.75;
}

/* === Main Layout === */
.apply-main {
    padding: 0 1.5rem 5rem;
}

.apply-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* === Sidebar === */
.apply-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5rem;
}

.sidebar-card {
    padding: 1.4rem 1.3rem;
    background: #FAF7F2;
    border: 1px solid #DDD5C8;
    border-radius: 12px;
}

.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C84B31;
    margin-bottom: 1rem;
}

.sidebar-checklist {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-checklist li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #5a5248;
}

.sidebar-checklist li svg {
    color: #1A6B5A;
    flex-shrink: 0;
}

.sidebar-dates .date-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #DDD5C8;
}

.sidebar-dates .date-block:last-of-type {
    margin-bottom: 0.8rem;
}

.date-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8178;
    margin-bottom: 0.2rem;
}

.date-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a2520;
    margin-bottom: 0.2rem;
}

.date-note {
    display: block;
    font-size: 0.78rem;
    color: #7a7168;
}

.date-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

.date-day {
    color: #3a3530;
    font-weight: 600;
}

.date-time {
    color: #7a7168;
}

.date-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6a6158;
    margin-top: 0.4rem;
}

.date-location svg {
    color: #C84B31;
    flex-shrink: 0;
}

.sidebar-deposit p {
    font-size: 0.84rem;
    color: #6a6158;
    line-height: 1.65;
}

/* === Form === */
.form-body {
    min-width: 0;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #FAF7F2;
    border: 1px solid #DDD5C8;
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C84B31;
    padding: 0;
    margin-bottom: 0.2rem;
}

.form-section-desc {
    font-size: 0.84rem;
    color: #7a7168;
    line-height: 1.65;
    margin-top: -0.4rem;
}

/* Field */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a3530;
    letter-spacing: 0.01em;
}

.required {
    color: #C84B31;
    margin-left: 0.15em;
}

.field-input {
    width: 100%;
    background: #F2EDE4;
    border: 1px solid #DDD5C8;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #2a2520;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field-input::placeholder {
    color: #a09890;
}

.field-input:focus {
    border-color: #1A6B5A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.1);
}

.field-input:invalid:not(:placeholder-shown) {
    border-color: rgba(200, 75, 49, 0.5);
}

.field-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7168' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.4rem;
}

.field-select option {
    background: #FAF7F2;
    color: #2a2520;
}

.field-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

.field-hint {
    font-size: 0.75rem;
    color: #8a8178;
    text-align: right;
}

/* === Checkboxes === */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid #DDD5C8;
    border-radius: 4px;
    background: #F2EDE4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    transition: border-color 0.2s, background 0.2s;
}

.checkbox-box svg {
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.checkbox-input:checked + .checkbox-box {
    background: #1A6B5A;
    border-color: transparent;
}

.checkbox-input:checked + .checkbox-box svg {
    opacity: 1;
}

.checkbox-input:focus + .checkbox-box {
    box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.15);
}

.checkbox-text {
    font-size: 0.875rem;
    color: #5a5248;
    line-height: 1.65;
}

.checkbox-text strong {
    color: #2a2520;
    font-weight: 600;
}

/* === Submit === */
.form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

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

.submit-arrow {
    transition: transform 0.2s ease;
}

.submit-btn:not(:disabled):hover .submit-arrow {
    transform: translateX(4px);
}

.form-fine {
    font-size: 0.78rem;
    color: #8a8178;
    line-height: 1.6;
}

/* === Success State === */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: #FAF7F2;
    border: 1px solid #DDD5C8;
    border-radius: 14px;
    gap: 1rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #1A6B5A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 0.5rem;
}

.success-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2a2520;
    letter-spacing: -0.02em;
}

.success-body {
    font-size: 0.95rem;
    color: #6a6158;
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 0.5rem;
}

/* === Responsive === */
@media (max-width: 820px) {
    .apply-container {
        grid-template-columns: 1fr;
    }

    .apply-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sidebar-deposit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .apply-header {
        padding: 5rem 1.25rem 2.5rem;
    }

    .apply-main {
        padding: 0 1.25rem 4rem;
    }

    .form-section {
        padding: 1.4rem 1.2rem;
    }

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

    .apply-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-deposit {
        grid-column: auto;
    }
}
