/* ===========================
   Partner Recruit Page Styles
   =========================== */

/* Hero Section */
.recruit-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.recruit-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/recruit-hero.jpg') center/cover no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
    z-index: 0;
}

.recruit-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Placeholder for missing images */
.recruit-hero-bg.placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, var(--primary-dark) 100%);
    animation: none;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.recruit-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.recruit-hero-label {
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.recruit-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.recruit-hero p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 40px;
}

.recruit-hero .btn {
    font-size: 17px;
    padding: 16px 40px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* ===========================
   Benefits Section
   =========================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.benefit-card-image {
    width: 100%;
    height: 200px;
    background: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.benefit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.benefit-card-body {
    padding: 28px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #c87830);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.benefit-card p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* Staggered fade-in delays */
.benefit-card:nth-child(1) { transition-delay: 0s; }
.benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefit-card:nth-child(4) { transition-delay: 0.3s; }

.benefit-card.fade-in {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card:nth-child(2).fade-in { transition-delay: 0.1s; }
.benefit-card:nth-child(3).fade-in { transition-delay: 0.2s; }
.benefit-card:nth-child(4).fade-in { transition-delay: 0.3s; }

/* ===========================
   Steps Section
   =========================== */
.steps-section {
    background: var(--bg-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

/* Connector line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(240,168,72,0.3);
    transition: transform 0.6s ease;
}

.step-item.fade-in .step-number {
    transform: scale(0);
}

.step-item.fade-in.visible .step-number {
    transform: scale(1);
}

.step-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-item p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    padding: 0 8px;
}

.step-image {
    width: 100%;
    height: 160px;
    background: #FFFFFF;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    overflow: hidden;
}

.step-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Staggered step delays */
.step-item:nth-child(2).fade-in { transition-delay: 0.2s; }
.step-item:nth-child(3).fade-in { transition-delay: 0.4s; }

/* ===========================
   App Preview Section
   =========================== */
.app-preview-section .phone-mockup {
    width: 280px;
    height: 560px;
    background: #E8E8E8;
    border-radius: 36px;
    border: 8px solid #222;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.app-preview-section .phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-preview-detail {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 60px 0;
}

.app-preview-detail:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.app-preview-detail.reverse {
    flex-direction: row-reverse;
}

.app-preview-text {
    flex: 1;
}

.app-preview-text .preview-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(240,168,72,0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.app-preview-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.app-preview-text p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 16px;
}

.app-preview-text ul {
    list-style: none;
    padding: 0;
}

.app-preview-text ul li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--text-sub);
    position: relative;
    padding-left: 28px;
}

.app-preview-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.app-preview-mock {
    flex-shrink: 0;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ===========================
   CTA Section
   =========================== */
.recruit-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}

.recruit-cta h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.recruit-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.recruit-cta .btn-white {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.recruit-cta .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.recruit-cta .cta-sub-link {
    display: block;
    margin-top: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-decoration: underline;
}

.recruit-cta .cta-sub-link:hover {
    color: #fff;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .recruit-hero {
        min-height: 70vh;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .app-preview-detail,
    .app-preview-detail.reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .app-preview-section .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .app-preview-text h3 {
        font-size: 22px;
    }

    .app-preview-text ul li {
        text-align: left;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .recruit-hero h1 {
        font-size: 28px;
    }

    .recruit-hero p {
        font-size: 15px;
    }

    .benefit-card-image {
        height: 160px;
    }

    .step-number {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .app-preview-section .phone-mockup {
        width: 180px;
        height: 360px;
    }
}
