/*
=============================================================
  DriveKing — Driver Job Page Stylesheet
  Pure CSS (no frameworks, no external libraries)
=============================================================
*/

/* =============================================
   SECTION WRAPPER
   ============================================= */
.dj-section {
    background: var(--bg-light);
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

/* =============================================
   2-COLUMN LAYOUT
   ============================================= */
.dj-layout {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 2.5rem;
    align-items: start;
}

/* =============================================
   LEFT BANNER
   ============================================= */
.dj-banner {
    position: relative;
}

.dj-banner-inner {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f2952 60%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    color: #fff;
}

/* Decorative blobs */
.dj-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dj-blob-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 0, .22) 0%, transparent 70%);
    top: -80px;
    right: -80px;
}

.dj-blob-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(26, 115, 232, .15) 0%, transparent 70%);
    bottom: 40px;
    left: -60px;
}

/* Now Hiring badge */
.dj-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 107, 0, .18);
    border: 1px solid rgba(255, 107, 0, .4);
    color: #ff9a00;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 50px;
    letter-spacing: .5px;
    text-transform: uppercase;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

/* Headline */
.dj-banner-headline {
    position: relative;
    z-index: 1;
}

.dj-banner-headline h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .65rem;
}

.dj-banner-headline h2 span {
    color: var(--orange-light);
}

.dj-banner-headline p {
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0;
}

/* Car + Driver Illustration */
.dj-car-illustration {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding: .5rem 0;
}

.dj-car-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dj-car-emoji {
    font-size: 4.5rem;
    filter: drop-shadow(0 8px 20px rgba(255, 107, 0, .4));
    animation: dj-float 3s ease-in-out infinite;
}

.dj-car-shadow {
    width: 80px;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .35) 0%, transparent 75%);
    border-radius: 50%;
    margin-top: -4px;
}

.dj-driver-wrap {
    position: absolute;
    bottom: 14px;
    right: 25%;
}

.dj-driver-emoji {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}

@keyframes dj-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Perks list */
.dj-perks {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    position: relative;
    z-index: 1;
}

.dj-perks li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .85);
}

.dj-perk-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Stats strip */
.dj-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: .85rem 1.25rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
    gap: 0;
}

.dj-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.dj-stat strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--orange-light);
    line-height: 1;
}

.dj-stat span {
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: .2rem;
}

.dj-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

/* =============================================
   RIGHT FORM CARD
   ============================================= */
.dj-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.dj-form-header {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    padding: 1.75rem 2rem 1.5rem;
    text-align: center;
    color: #fff;
}

.dj-form-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.dj-form-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .3rem;
}

.dj-form-header p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
    margin: 0;
}

/* Error message */
.dj-form-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff5f5;
    border-left: 4px solid #e53935;
    color: #c62828;
    font-size: .875rem;
    font-weight: 500;
    padding: .85rem 1.25rem;
    margin: 1.25rem 2rem 0;
    border-radius: var(--radius-sm);
}

/* Form */
.dj-form {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

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

.dj-field label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
}

.dj-field label svg {
    width: 14px;
    height: 14px;
    stroke: var(--orange);
    flex-shrink: 0;
}

.dj-required {
    color: var(--orange);
}

.dj-field input,
.dj-select-wrap select {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--dark);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.dj-field input::placeholder {
    color: var(--text-light);
}

.dj-field input:focus,
.dj-select-wrap select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
}

/* Select wrapper (for custom arrow) */
.dj-select-wrap {
    position: relative;
}

.dj-select-wrap select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.dj-select-arrow {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    pointer-events: none;
}

/* 2-column field row (age + experience) */
.dj-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Submit button */
.dj-submit-btn {
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: var(--radius-sm);
    margin-top: .25rem;
    gap: .6rem;
}

/* Privacy note */
.dj-form-note {
    text-align: center;
    font-size: .75rem;
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   SUCCESS STATE
   ============================================= */
.dj-success {
    padding: 3rem 2rem;
    text-align: center;
}

.dj-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0d9f6e, #1dcf94);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(13, 159, 110, .3);
}

.dj-success h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .6rem;
}

.dj-success p {
    font-size: .9rem;
    color: var(--text-muted);
}

/* =============================================
   WHY JOIN US
   ============================================= */
.dj-why-section {
    background: #fff;
}

.dj-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dj-why-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.dj-why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dj-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.dj-why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}

.dj-why-card p {
    font-size: .84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* =============================================
   HOW TO APPLY — STEPS
   ============================================= */
.dj-steps-section {
    background: var(--bg-light);
}

.dj-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dj-step {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.dj-step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--orange-pale2);
    line-height: 1;
    margin-bottom: .75rem;
    letter-spacing: -1px;
    -webkit-text-stroke: 2px var(--orange);
    color: transparent;
}

.dj-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}

.dj-step p {
    font-size: .84rem;
    color: var(--text-muted);
    margin: 0;
}

.dj-step-arrow {
    font-size: 1.75rem;
    color: var(--orange-pale2);
    flex-shrink: 0;
    margin-bottom: 1rem;
}

/* =============================================
   DOWNLOAD APP SECTION
   ============================================= */
.dj-app-section {
    background: var(--dark);
    padding: 5rem 0;
}

.dj-app-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.dj-app-tag {
    display: inline-block;
    background: rgba(255, 107, 0, .15);
    border: 1px solid rgba(255, 107, 0, .35);
    color: var(--orange-light);
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

.dj-app-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #fff;
    margin-bottom: .85rem;
}

.dj-app-text p {
    color: rgba(255, 255, 255, .6);
    font-size: .95rem;
    max-width: 460px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* Store buttons */
.dj-app-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dj-store-btn {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    background: rgba(255, 255, 255, .07);
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: .85rem 1.4rem;
    color: #fff;
    transition: all var(--transition);
    text-decoration: none;
}

.dj-store-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}

.dj-store-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.dj-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.dj-store-text span {
    font-size: .68rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.dj-store-text strong {
    font-size: .95rem;
    color: #fff;
    font-weight: 700;
}

/* Phone mockup */
.dj-app-visual {
    position: relative;
    flex-shrink: 0;
}

.dj-phone-mockup {
    position: relative;
}

.dj-phone-screen {
    width: 200px;
    background: #fff;
    border-radius: 28px;
    border: 8px solid #2a2a3e;
    padding: 1rem .85rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    position: relative;
}

.dj-phone-notch {
    width: 60px;
    height: 10px;
    background: #2a2a3e;
    border-radius: 10px;
    margin: 0 auto .85rem;
}

.dj-phone-content {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.dj-phone-logo {
    font-size: .75rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    letter-spacing: .3px;
}

.dj-phone-stat-row {
    display: flex;
    gap: .5rem;
}

.dj-phone-stat {
    flex: 1;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: .5rem;
    text-align: center;
}

.dj-phone-stat span {
    display: block;
    font-size: .55rem;
    color: var(--text-muted);
}

.dj-phone-stat strong {
    font-size: .85rem;
    font-weight: 800;
    color: var(--orange);
}

.dj-phone-bar-wrap {
    background: var(--bg-light);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.dj-phone-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 10px;
}

.dj-phone-btn-mock {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: .45rem;
    font-size: .7rem;
    font-weight: 700;
    margin-top: .25rem;
}

.dj-phone-shadow {
    width: 160px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .4) 0%, transparent 75%);
    border-radius: 50%;
    margin: .5rem auto 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .dj-layout {
        grid-template-columns: 1fr 420px;
    }

    .dj-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .dj-layout {
        grid-template-columns: 1fr;
    }

    .dj-banner-inner {
        min-height: auto;
    }

    .dj-form-card {
        position: static;
    }

    .dj-app-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .dj-app-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .dj-app-btns {
        justify-content: center;
    }

    .dj-app-visual {
        display: flex;
        justify-content: center;
    }

    .dj-steps {
        flex-direction: column;
        align-items: center;
    }

    .dj-step-arrow {
        transform: rotate(90deg);
    }
}

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

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

    .dj-form {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .dj-form-error {
        margin: 1rem 1.25rem 0;
    }

    .dj-success {
        padding: 2rem 1.25rem;
    }
}