/* =========================================
   COMPACT UCR REGISTRATION PAGE STYLES
   ========================================= */

.ucr-registration-page {
    background-color: #f5f7fa;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Compact Progress Bar */
.compact-progress {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-steps-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.step-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.step-number-compact {
    width: 28px;
    height: 28px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.step-compact.active .step-number-compact {
    background-color: #0a266b;
    color: white;
}

.step-label-compact {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.step-compact.active .step-label-compact {
    color: #0a266b;
    font-weight: 600;
}

.step-separator {
    width: 40px;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

/* Main Registration Container */
.compact-registration-section {
    padding: 30px 20px;
}

.compact-registration-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 0;
}

/* Left Panel - Form */
.compact-form-panel {
    padding: 25px 30px;
    border-right: 1px solid #e0e0e0;
}

.compact-form-header {
    margin-bottom: 15px;
}

.compact-form-header h1 {
    font-size: 1.4rem;
    color: #05143a;
    margin-bottom: 10px;
    font-weight: 700;
}

.year-selector-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.year-selector-compact label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.year-dropdown-compact {
    padding: 6px 12px;
    border: 1px solid #0a266b;
    border-radius: 4px;
    background-color: white;
    color: #0a266b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.section-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0 20px 0;
}

.form-section-title {
    margin-bottom: 20px;
}

.form-section-title h2 {
    font-size: 1.1rem;
    color: #05143a;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.compact-registration-form {
    margin-top: 20px;
}

.form-group-compact {
    margin-bottom: 18px;
}

.form-group-compact label {
    display: block;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input-compact {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.2s;
}

.form-input-compact:focus {
    outline: none;
    border-color: #0a266b;
    background-color: white;
}

.form-input-compact::placeholder {
    color: #999;
    font-size: 0.85rem;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.form-group-half {
    margin-bottom: 0;
}

.certification-checkbox-compact {
    margin: 25px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0a266b;
}

.certification-checkbox-compact input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.certification-checkbox-compact label {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    font-weight: 500;
}

.form-actions-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-back-compact {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back-compact:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.btn-next-compact {
    padding: 10px 25px;
    background-color: #0a266b;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next-compact:hover {
    background-color: #082154;
}

/* Right Panel - Carrier Information */
.compact-info-panel {
    padding: 25px 30px;
    background-color: #f9fafc;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.info-header h2 {
    font-size: 1.1rem;
    color: #05143a;
    margin: 0;
    font-weight: 600;
}

.dot-badge-compact {
    background-color: #e8efff;
    color: #0a266b;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.status-dot {
    color: #4CAF50;
    font-size: 0.6rem;
}

.data-source {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* Timeline Section */
.timeline-section {
    max-width: 1100px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px 25px;
    border-top: 3px solid #0a266b;
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-header h3 {
    font-size: 1rem;
    color: #05143a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content {
    display: flex;
    justify-content: space-around;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a266b;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .compact-registration-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .compact-form-panel {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .info-item {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 768px) {
    .progress-steps-compact {
        flex-wrap: nowrap !important; 
        gap: 0; 
        width: 100%; 
        padding: 0 5px; 
    }
    
    .step-separator {
        display: block !important; 
        width: auto;
        flex: 1; 
        min-width: 10px; 
        margin: 0 2px; 
        background-color: #e0e0e0; 
    }
    
    .step-label-compact {
        font-size: 10px; 
        white-space: normal; 
        line-height: 1.1;
        max-width: 65px; 
    }

    .step-compact {
        padding: 0 2px; 
        flex-shrink: 0; 
    }
    .step-number-compact {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .form-row-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .timeline-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 10px 0;
    }
    
    .timeline-date {
        min-width: 80px;
        margin-bottom: 0;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .compact-form-panel,
    .compact-info-panel {
        padding: 20px 15px;
    }
    
    .compact-form-header h1 {
        font-size: 1.2rem;
    }
    
    .info-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .form-actions-compact {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-back-compact,
    .btn-next-compact {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   ADDITIONAL STYLES FOR STEP 2 (CLASSIFICATION)
   ========================================= */

/* Completed step styling */
.step-compact.completed .step-number-compact {
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-compact.completed .step-number-compact i {
    font-size: 0.8rem;
}

/* Classification Options */
.classification-options {
    margin: 20px 0;
}

.checkbox-group {
    margin-bottom: 15px;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s;
}

/* .checkbox-label:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
} */

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #0a266b;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background-color: #0a266b;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
    opacity: 1;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    flex: 1;
}

/* Active timeline item */
.timeline-item.active .timeline-date {
    color: #4CAF50;
    font-weight: 700;
}

.timeline-item.active .timeline-desc {
    color: #333;
    font-weight: 500;
}

/* Error styling for checkboxes */
.checkbox-group.error .checkbox-custom {
    border-color: #ff0000;
}

.checkbox-group.error .checkbox-text {
    color: #ff0000;
}

/* Validation message */
.validation-message {
    color: #ff0000;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
}

.validation-message.show {
    display: block;
}

/* =========================================
   UCR REGISTRATION - FLEET DETAILS
   ========================================= */

/* Fleet Details Specific Styles */
.fleet-details-section {
    margin: 25px 0;
}

.vehicle-count-group {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0a266b;
}

.vehicle-count-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vehicle-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.vehicle-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a266b;
}

.vehicle-count-note {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-count-note i {
    color: #0a266b;
}

/* CMV Adjustment Section */
.cmv-adjustment-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e3ff;
}

.cmv-adjustment-section .form-section-title h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

/* Radio Group Horizontal */
.radio-group-horizontal {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #0a266b;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .radio-label .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #0a266b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Adjustment Form */
.adjustment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Number Input Controls */
.number-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.number-input input {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.number-btn {
    width: 40px;
    height: 40px;
    background-color: #0a266b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.number-btn:hover {
    background-color: #1a3a8c;
}

.number-btn:active {
    transform: scale(0.95);
}

.adjustment-note {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-size: 0.9rem;
}

.adjustment-note i {
    color: #f39c12;
}

/* Total Vehicles Section */
.total-vehicles-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #e8f5e8;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.total-vehicles-label {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.total-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #155724;
}

.total-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: #155724;
}

.total-note {
    font-size: 0.9rem;
    color: #0c5460;
    font-style: italic;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-group-horizontal {
        flex-direction: column;
        gap: 15px;
    }
    
    .vehicle-count-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .total-vehicles-label {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .total-label {
        font-size: 1.1rem;
    }
    
    .total-count {
        font-size: 2rem;
    }
    
    .cmv-adjustment-section,
    .vehicle-count-group {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .number-input {
        justify-content: center;
    }
    
    .number-input input {
        width: 70px;
    }
    
    .vehicle-type {
        font-size: 1rem;
    }
    
    .vehicle-count {
        font-size: 1.5rem;
    }
}