/**
 * Vendor_Carrier - Carrier / Jobs Page Styles
 * Matches UI from design screenshots exactly.
 */

/* =============================================
   SECTION WRAPPER
   ============================================= */
.vc-carrier-section {
    padding: 60px 20px 80px;
    background: #fff;
}

.vc-carrier-wrapper {
    max-width: 1060px;
    margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
.vc-carrier-header {
    text-align: center;
    margin-bottom: 40px;
}

.vc-carrier-title {
    font-size: 40px;
    font-weight: 700;
    color: #3065bf;
    margin: 0 0 12px;
    line-height: 1.2;
}

.vc-carrier-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* =============================================
   JOB CARDS
   ============================================= */
.vc-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vc-job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vc-job-card:hover {
    box-shadow: 0 4px 18px rgba(45, 58, 192, 0.10);
    border-color: #c7cdf5;
}

.vc-job-info {
    flex: 1;
}

.vc-job-title {
    font-size: 20px;
    font-weight: 700;
    color: #3065bf;
    margin: 0 0 8px;
}

.vc-job-meta {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-dot {
    color: #9ca3af;
    font-size: 12px;
}

.vc-job-action {
    margin-left: 24px;
    flex-shrink: 0;
}

.vc-apply-btn {
    background-color: #3065bf;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.vc-apply-btn:hover {
    background-color: #1e2a9e;
    transform: translateY(-1px);
}

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

/* =============================================
   OVERLAY
   ============================================= */
.vc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* =============================================
   MODAL
   ============================================= */
.vc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 44px 44px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: vcModalIn 0.25s ease;
}

@keyframes vcModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vc-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.vc-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.vc-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.vc-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3ac0;
    margin: 0 0 8px;
    line-height: 1.3;
}

.vc-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* =============================================
   FORM
   ============================================= */
.vc-form-group {
    margin-bottom: 20px;
}

.vc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.vc-required {
    color: #ef4444;
    margin-left: 2px;
}

.vc-input,
.vc-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.vc-input:focus,
.vc-textarea:focus {
    outline: none;
    border-color: #2d3ac0;
    box-shadow: 0 0 0 3px rgba(45, 58, 192, 0.12);
}

.vc-input::placeholder,
.vc-textarea::placeholder {
    color: #9ca3af;
}

.vc-textarea {
    resize: vertical;
    min-height: 110px;
}

/* File input custom */
.vc-input-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.vc-file-wrapper {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vc-file-wrapper:focus-within {
    border-color: #2d3ac0;
    box-shadow: 0 0 0 3px rgba(45, 58, 192, 0.12);
}

.vc-file-label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.vc-file-btn {
    background: #f9fafb;
    border-right: 1px solid #d1d5db;
    padding: 11px 16px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.vc-file-text {
    padding: 11px 14px;
    color: #9ca3af;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */
.vc-submit-btn {
    width: 100%;
    background-color: #2d3ac0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.vc-submit-btn:hover:not(:disabled) {
    background-color: #1e2a9e;
}

.vc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vc-btn-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vc-spin-path {
    animation: vcSpin 0.8s linear infinite;
    transform-origin: center;
}

@keyframes vcSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =============================================
   ALERTS
   ============================================= */
.vc-alert {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.vc-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.vc-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .vc-carrier-title {
        font-size: 28px;
    }

    .vc-job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
    }

    .vc-job-action {
        margin-left: 0;
        width: 100%;
    }

    .vc-apply-btn {
        width: 100%;
        text-align: center;
    }

    .vc-modal {
        padding: 28px 22px 32px;
    }
}

@media (max-width: 480px) {
    .vc-carrier-section {
        padding: 40px 14px 60px;
    }

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