/* Carrier Onboarding Form - Enhanced Styles with Class A Jobs 411 Branding */

:root {
    --primary-blue: #003366;
    --primary-yellow: #FFC107;
    --accent-orange: #FF8C00;
    --accent-green: #4CAF50;
    --text-dark: #212121;
    --text-gray: #666666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.carrier-onboarding-form-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Hero Header */
.form-hero-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    color: var(--bg-white);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,80 Q600,120 0,80 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.form-hero-header .hero-content {
    position: relative;
    z-index: 1;
}

.carrier-onboarding-form h2 {
    color: var(--bg-white);
    margin: 0 0 15px 0;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.carrier-onboarding-form h2 .highlight {
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
}

.carrier-onboarding-form .form-description {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.carrier-onboarding-form .required {
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 18px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    font-size: 14px;
    font-weight: 600;
}

.trust-indicator svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-yellow);
}

/* Form Content */
.form-content {
    padding: 40px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 35px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 5px solid var(--primary-blue);
    position: relative;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-left-color: var(--primary-yellow);
    box-shadow: var(--shadow-sm);
}

.form-section h3 {
    margin: 0 0 25px 0;
    color: var(--primary-blue);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-yellow);
}

.form-section h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 32px;
    background: var(--primary-yellow);
    border-radius: 4px;
}

.form-section .section-description {
    color: var(--text-gray);
    margin: -10px 0 25px 0;
    font-size: 15px;
    font-style: italic;
}

/* Form Rows and Fields */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.form-field .optional {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="url"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-field input[type="file"] {
    padding: 12px 0;
    font-size: 14px;
    cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
    background: var(--primary-blue);
    color: var(--bg-white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.form-field input[type="file"]::file-selector-button:hover {
    background: #004080;
    transform: translateY(-1px);
}

.form-field small {
    display: block;
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
}

/* File Upload Section Styling */
.form-section.file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: var(--accent-orange);
}

.form-section.file-upload-section h3 {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.form-section.file-upload-section h3::before {
    background: var(--accent-orange);
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    padding: 35px 40px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-top: 3px solid var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFD54F 100%);
    color: var(--text-dark);
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #FFD54F 0%, var(--primary-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

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

.submit-button:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    color: var(--primary-blue);
    font-style: italic;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.carrier-onboarding-messages {
    margin: 0 40px 30px 40px;
}

.message {
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.message.success {
    background: #E8F5E9;
    border: 2px solid var(--accent-green);
    color: #2E7D32;
}

.message.success::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
    background-size: contain;
}

.message.error {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
}

.message.error::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F44336"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center;
    background-size: contain;
}

.message.info {
    background: #E3F2FD;
    border: 2px solid #2196F3;
    color: #1565C0;
}

.message.info::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232196F3"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center;
    background-size: contain;
}

/* Progress Indicator */
.form-progress {
    background: var(--bg-white);
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.progress-step-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carrier-onboarding-form-wrapper {
        margin: 20px;
        border-radius: 8px;
    }

    .form-hero-header {
        padding: 40px 20px;
    }

    .carrier-onboarding-form h2 {
        font-size: 32px;
    }

    .carrier-onboarding-form .form-description {
        font-size: 16px;
    }

    .trust-indicators {
        gap: 20px;
    }

    .form-content {
        padding: 20px;
    }

    .form-section {
        padding: 25px 20px;
    }

    .form-section h3 {
        font-size: 22px;
    }

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

    .form-actions {
        padding: 25px 20px;
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
        padding: 16px 30px;
    }

    .carrier-onboarding-messages {
        margin: 0 20px 20px 20px;
    }

    .form-progress {
        padding: 15px 20px;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .progress-step {
        flex-basis: 50%;
        margin-bottom: 15px;
    }

    .progress-step::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .carrier-onboarding-form h2 {
        font-size: 26px;
    }

    .form-section h3 {
        font-size: 20px;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .form-actions,
    .submit-button,
    .loading-spinner,
    .form-hero-header {
        display: none;
    }

    .carrier-onboarding-form-wrapper {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .form-section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

.submit-button:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Custom Scrollbar */
.carrier-onboarding-form-wrapper ::-webkit-scrollbar {
    width: 10px;
}

.carrier-onboarding-form-wrapper ::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.carrier-onboarding-form-wrapper ::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

.carrier-onboarding-form-wrapper ::-webkit-scrollbar-thumb:hover {
    background: #004080;
}
