/* ==========================================================================
   Modern Industrial Career Portal Stylesheet (ProTech Solutions)
   ========================================================================== */

/* Page Background */
body.carrier-page-main {
    background-color: #0a162e;
    background-image:
        radial-gradient(circle at 14% 28%, rgba(30, 64, 175, 0.28) 0%, transparent 48%),
        radial-gradient(circle at 86% 78%, rgba(29, 78, 216, 0.22) 0%, transparent 48%),
        linear-gradient(180deg, #0b1833 0%, #071022 100%);
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.carrier-hero-modern {
    position: relative;
    background: linear-gradient(135deg, #060d1f 0%, #0d1d3f 55%, #162e5e 100%);
    color: #ffffff;
    padding: 75px 24px 65px;
    overflow: hidden;
    border-bottom: 1px solid rgba(147, 197, 253, 0.14);
}

.carrier-hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 1px 1px, rgba(248, 206, 36, 0.15) 1px, transparent 0);
    background-size: 36px 36px, 36px 36px, 36px 36px;
    pointer-events: none;
}

.carrier-hero-canvas {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.carrier-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.carrier-breadcrumb-nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.carrier-breadcrumb-nav a:hover {
    color: var(--primary-yellow-bright, #f8ce24);
}

.carrier-breadcrumb-nav .sep {
    color: #475569;
}

.carrier-breadcrumb-nav .current {
    color: var(--primary-yellow-bright, #f8ce24);
    font-weight: 700;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(248, 206, 36, 0.14);
    border: 1px solid rgba(248, 206, 36, 0.35);
    color: var(--primary-yellow-bright, #f8ce24);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-pill-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-yellow, #f8ce24);
    box-shadow: 0 0 10px var(--primary-yellow, #f8ce24);
}

.carrier-hero-headline {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    color: #ffffff;
    max-width: 860px;
}

.carrier-hero-headline .highlight-orange {
    color: var(--primary-yellow-bright, #f8ce24);
}

.carrier-hero-lead {
    font-size: clamp(15px, 1.8vw, 17.5px);
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 780px;
    margin-bottom: 28px;
}

.carrier-hero-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12.5px;
    color: #e2e8f0;
    font-weight: 600;
}

.hero-stat-pill svg {
    width: 15px;
    height: 15px;
    color: var(--primary-yellow-bright, #f8ce24);
    flex-shrink: 0;
}

/* ==========================================================================
   Page Content Wrapper
   ========================================================================== */
.carrier-portal-content {
    max-width: 1240px;
    margin: -30px auto 0;
    padding: 0 24px 88px;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   Why Join Us (Perks Strip)
   ========================================================================== */
.carrier-perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.perk-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.perk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(171, 135, 0, 0.45);
}

.perk-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(248, 206, 36, 0.16);
    color: var(--primary-yellow-text, #876a00);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.perk-icon-box svg {
    width: 22px;
    height: 22px;
}

.perk-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.perk-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   Main Application Card
   ========================================================================== */
.carrier-main-card {
    background: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.26);
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 24px 58px rgba(2, 6, 23, 0.52),
        0 6px 18px rgba(0, 0, 0, 0.32);
    margin-bottom: 0;
}

.carrier-card-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf2f7;
}

.carrier-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-yellow-text, #876a00);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.carrier-card-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.carrier-card-subtitle {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 820px;
}

/* Quick Select Role Chips */
.carrier-role-picker {
    margin-bottom: 26px;
}

.role-picker-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: block;
}

.role-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.role-chip-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-chip-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.role-chip-btn.active {
    background: rgba(248, 206, 36, 0.18);
    border-color: var(--primary-yellow, #f8ce24);
    color: var(--primary-yellow-text, #876a00);
    font-weight: 700;
}

/* Form Layout */
.carrier-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    margin-bottom: 26px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group-carrier {
    display: flex;
    flex-direction: column;
}

.form-label-carrier {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

.form-label-carrier .star {
    color: var(--primary-yellow-text, #876a00);
    font-weight: 800;
}

.carrier-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carrier-text-input {
    width: 100%;
    height: 48px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.carrier-text-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-yellow, #f8ce24);
    box-shadow: 0 0 0 3px rgba(248, 206, 36, 0.18);
    outline: none;
}

.carrier-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.carrier-text-input:focus~.carrier-input-icon,
.carrier-input-wrapper:focus-within .carrier-input-icon {
    color: var(--primary-yellow-text, #876a00);
}

/* Modern CV Upload Dropzone Box */
.carrier-dropzone-box {
    grid-column: span 2;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.carrier-dropzone-box:hover,
.carrier-dropzone-box.drag-over {
    background: rgba(248, 206, 36, 0.06);
    border-color: var(--primary-yellow, #f8ce24);
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--primary-yellow-text, #876a00);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dropzone-icon svg {
    width: 20px;
    height: 20px;
}

.dropzone-main-text {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dropzone-browse-btn {
    color: var(--primary-yellow-text, #876a00);
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-sub-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.carrier-native-file {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-selected-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 6px;
}

.file-selected-indicator svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

/* Anti-Spam Security CAPTCHA Container */
.carrier-security-container {
    grid-column: span 2;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.security-badge-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-captcha-badge {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #f8fafc;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--primary-yellow-bright, #f8ce24);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-reload-captcha {
    background: none;
    border: none;
    color: var(--primary-yellow-text, #876a00);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.btn-reload-captcha:hover {
    opacity: 0.85;
}

.btn-reload-captcha svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.btn-reload-captcha:active svg {
    transform: rotate(180deg);
}

/* Submit Row */
.carrier-action-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-submit-application {
    height: 50px;
    padding: 0 36px;
    background: linear-gradient(135deg, #fae06b 0%, var(--primary-yellow, #f8ce24) 100%);
    color: var(--primary-yellow-ink, #151618);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(248, 206, 36, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(248, 206, 36, 0.45);
}

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

.btn-submit-application:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit-application svg {
    width: 16px;
    height: 16px;
}

.carrier-privacy-hint {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Status Notifications */
.carrier-alert-status {
    display: none;
    width: 100%;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px;
}

.carrier-alert-status.show-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.carrier-alert-status.show-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Error Border on Input */
.has-carrier-error .carrier-text-input,
.has-carrier-error.carrier-dropzone-box,
.has-carrier-error .carrier-security-container {
    border-color: #ef4444 !important;
    background-color: #fff8f8 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .carrier-portal-content {
        padding: 0 20px;
    }

    .carrier-main-card {
        padding: 36px 28px;
    }
}

/* Tablet & Mobile Screens: Single-column clean stack */
@media (max-width: 900px) {
    .carrier-form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .form-group-full,
    .form-group-carrier,
    .carrier-dropzone-box,
    .carrier-security-container {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .carrier-security-container {
        grid-template-columns: 1fr !important;
        gap: 14px;
        padding: 18px 16px;
    }

    .security-badge-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .security-captcha-badge {
        font-size: 20px;
        padding: 7px 16px;
        letter-spacing: 5px;
    }
}

@media (max-width: 768px) {
    .carrier-hero-modern {
        padding: 55px 18px 45px;
    }

    .carrier-portal-content {
        padding: 0 16px 60px;
        margin-top: -15px;
        margin-bottom: 0;
    }

    .carrier-main-card {
        padding: 26px 18px;
        border-radius: 14px;
    }

    .carrier-card-header {
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .carrier-card-title {
        font-size: 22px;
    }

    .carrier-action-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .btn-submit-application {
        width: 100%;
        justify-content: center;
        height: 48px;
        font-size: 14.5px;
    }

    .carrier-privacy-hint {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carrier-hero-modern {
        padding: 42px 14px 38px;
    }

    .carrier-hero-title {
        font-size: 24px;
    }

    .carrier-hero-lead {
        font-size: 14px;
    }

    .carrier-hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .hero-stat-pill {
        justify-content: center;
        width: 100%;
    }

    .carrier-portal-content {
        padding: 0 10px 45px;
        margin-top: -10px;
        margin-bottom: 0;
    }

    .carrier-main-card {
        padding: 20px 14px;
        border-radius: 12px;
    }

    .carrier-card-title {
        font-size: 20px;
    }

    .carrier-card-subtitle {
        font-size: 13.5px;
    }

    .carrier-text-input {
        height: 46px;
        font-size: 13.5px;
        padding: 0 14px 0 38px;
    }

    .carrier-input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .carrier-dropzone-box {
        padding: 18px 12px;
    }

    .dropzone-main-text {
        font-size: 13px;
    }

    .dropzone-sub-text {
        font-size: 11px;
    }

    .security-badge-col {
        flex-direction: column;
        align-items: stretch;
    }

    .security-captcha-badge {
        width: 100%;
        font-size: 19px;
        letter-spacing: 4px;
        text-align: center;
    }

    .btn-reload-captcha {
        justify-content: center;
    }

    .btn-submit-application {
        height: 46px;
        font-size: 14px;
        padding: 0 20px;
    }
}