/* ==========================================================================
   Apply for Tutor Page — Deenverse Warm Theme
   ========================================================================== */

.apply-tutor-page {
    background: linear-gradient(180deg, #f9f4ea 0%, #f2e8d7 100%);
    min-height: 100vh;
}

/* Hero Banner */
.at-hero {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    position: relative;
}

.at-hero__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C9A227;
    margin-bottom: 0.75rem;
}

.at-hero h1 {
    font-size: clamp(1.6rem, 1rem + 2.5vw, 2.6rem);
    color: var(--ink-soft, #20160f);
    margin: 0 0 0.75rem;
    line-height: 1.25;
    font-weight: 800;
}

.at-hero__lead {
    font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.1rem);
    color: var(--ink-muted, #5b5147);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Sections */
.at-section {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.at-section__header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.at-section__header h2 {
    font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
    color: var(--ink-soft, #20160f);
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.at-section__header p {
    color: var(--ink-muted, #5b5147);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Subject Cards Grid */
.at-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.at-subject-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(199, 173, 132, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.at-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 39, 20, 0.08);
}

.at-subject-card__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 12px;
}

.at-subject-card__text h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--ink-soft, #20160f);
    font-weight: 700;
}

.at-subject-card__text p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-muted, #5b5147);
    line-height: 1.5;
}

/* Benefits Section */
.at-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.at-benefit {
    background: linear-gradient(160deg, rgba(30, 58, 38, 0.95), rgba(19, 42, 28, 0.92));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(64, 117, 78, 0.3);
}

.at-benefit__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.at-benefit h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #f5f6f8;
    font-weight: 700;
}

.at-benefit p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}

/* How We Work Section */
.at-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.at-process-step {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(199, 173, 132, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    counter-increment: step;
    position: relative;
}

.at-process-step__num {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #C9A227, #e8c840);
    color: #1a120a;
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.at-process-step h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: var(--ink-soft, #20160f);
    font-weight: 700;
}

.at-process-step p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-muted, #5b5147);
    line-height: 1.5;
}

/* Requirements */
.at-requirements {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(199, 173, 132, 0.3);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 700px;
    margin: 0 auto;
}

.at-requirements h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--ink-soft, #20160f);
    font-weight: 700;
    text-align: center;
}

.at-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.at-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--ink-soft, #20160f);
    line-height: 1.5;
}

.at-requirements li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Divider */
.at-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C9A227, #e8c840);
    border-radius: 2px;
    margin: 0 auto;
}

/* Terms & Conditions Section */
.at-terms-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.at-terms-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(199, 173, 132, 0.35);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 760px;
    margin: 0 auto;
}

.at-terms-card h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--ink-soft, #20160f);
    font-weight: 800;
    text-align: center;
}

.at-terms-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: rgba(246, 240, 229, 0.5);
    border: 1px solid rgba(199, 173, 132, 0.25);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ink-soft, #20160f);
}

.at-terms-content::-webkit-scrollbar {
    width: 5px;
}

.at-terms-content::-webkit-scrollbar-thumb {
    background: rgba(199, 173, 132, 0.4);
    border-radius: 99px;
}

.at-terms-content h3 {
    font-size: 0.95rem;
    margin: 1rem 0 0.4rem;
    color: var(--ink-soft, #20160f);
}

.at-terms-content h3:first-child {
    margin-top: 0;
}

.at-terms-content ol,
.at-terms-content ul {
    padding-left: 1.25rem;
    margin: 0.4rem 0;
}

.at-terms-content li {
    margin-bottom: 0.35rem;
}

.at-terms-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(201, 162, 39, 0.06);
    border: 1.5px solid rgba(199, 173, 132, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.at-terms-accept:has(input:checked) {
    border-color: #C9A227;
    background: rgba(201, 162, 39, 0.12);
}

.at-terms-accept input[type="checkbox"] {
    accent-color: #C9A227;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.at-terms-accept span {
    font-size: 0.9rem;
    color: var(--ink-soft, #20160f);
    font-weight: 600;
    line-height: 1.5;
}

/* Application Form Section */
.at-form-section {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.at-form-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(199, 173, 132, 0.35);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 16px 48px rgba(57, 39, 20, 0.08);
}

.at-form-card h2 {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
    color: var(--ink-soft, #20160f);
    font-weight: 800;
    text-align: center;
}

.at-form-card>p {
    text-align: center;
    color: var(--ink-muted, #5b5147);
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
}

.at-form-locked {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ink-muted, #5b5147);
}

.at-form-locked__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.at-form-locked p {
    margin: 0;
    font-size: 0.92rem;
}

/* Reuse ta- form styles from personal-tutor-landing.css */

@media (max-width: 600px) {
    .at-subjects-grid {
        grid-template-columns: 1fr;
    }

    .at-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .at-process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {

    .at-benefits-grid,
    .at-process-steps {
        grid-template-columns: 1fr;
    }
}