.apply-page-wrapper {
    max-width: 840px;
    margin: 40px auto 80px;
    padding: 0 20px;
    font-family: var(--font-family-base, 'Inter', sans-serif);
    color: var(--color-text-primary, #0f172a);
}

.apply-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 44px 48px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .apply-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

.apply-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.apply-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.apply-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #0f172a;
}

/* Блок объяснения причины строгой регистрации */
.reason-manifest-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 30px;
    position: relative;
}

.reason-main-quote {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 4px solid #f97316;
}

.reason-how-it-works {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.reason-how-it-works h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reason-how-it-works p {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.reason-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-list li {
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
}

.reason-list strong {
    color: #1e293b;
    font-weight: 600;
}

.reason-apology {
    font-size: 13.5px;
    font-style: italic;
    color: #64748b;
    margin: 0;
    text-align: right;
}

/* Блок про бесплатность и Мурлики */
.free-murlic-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.free-murlic-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.free-murlic-coin-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.28));
    transition: transform 0.25s ease;
}

.free-murlic-coin-img:hover {
    transform: rotate(10deg) scale(1.08);
}

.free-murlic-content {
    font-size: 14px;
    line-height: 1.5;
    color: #92400e;
}

.free-murlic-content strong {
    color: #78350f;
    font-weight: 700;
}

/* Кнопка раскрытия формы */
.toggle-apply-btn {
    width: 100%;
    padding: 18px 28px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.toggle-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.36);
}

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

.toggle-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-apply-btn.is-active .toggle-arrow {
    transform: rotate(180deg);
}

/* Раскрывающийся контейнер */
.apply-collapsible-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
    opacity: 0;
    margin-top: 0;
}

.apply-collapsible-wrapper.is-open {
    max-height: 2200px;
    opacity: 1;
    margin-top: 32px;
}

/* Блок гарантий безопасности и 152-ФЗ */
.security-guarantee-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 28px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.security-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-shield-img {
    height: 52px;
    width: auto;
    max-width: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(22, 101, 52, 0.16));
    transition: transform 0.25s ease;
}

.security-shield-img:hover {
    transform: scale(1.05);
}

.security-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 6px 0;
}

.security-text p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #14532d;
    margin: 0;
}

/* Сетка формы */
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

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

.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-star {
    color: #ef4444;
}

.apply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.apply-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.apply-input::placeholder {
    color: #94a3b8;
}

.apply-textarea {
    resize: vertical;
    min-height: 90px;
}

/* Чекбокс согласия */
.consent-container {
    margin-top: 8px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1.5px dashed rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    transition: border-color 0.2s;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.45;
    color: #334155;
    user-select: none;
}

.apply-checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #22c55e;
    flex-shrink: 0;
}

.field-error-msg {
    font-size: 12.5px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

/* Кнопка отправки формы */
.apply-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 16px 28px;
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    background: #22c55e;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
    transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.apply-submit-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.32);
}

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

/* Экран успешной отправки */
.success-card-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.success-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.success-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 24px;
    margin: 0 auto 28px;
    max-width: 480px;
    text-align: left;
    font-size: 14px;
}

.success-details-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #edf2f7;
}

.success-details-row:last-child {
    border-bottom: none;
}

.success-details-row span:first-child {
    color: #64748b;
}

.success-details-row span:last-child {
    font-weight: 600;
    color: #0f172a;
}

.btn-back-home {
    display: inline-block;
    padding: 14px 32px;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
    transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
}

.btn-back-home:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.32);
}

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