/* Car Rental Calculator Styles - Compact Layout */
.crc-calculator {
    max-width: 650px;
    margin: 10px auto;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Results box - na górze */
.crc-results {
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #001C3F 0%, #003366 100%);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 28, 63, 0.15);
}

.crc-loading {
    text-align: center;
    padding: 10px;
    color: #ffffff;
}

.crc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: crc-spin 0.8s linear infinite;
}

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

.crc-monthly-rate {
    text-align: center;
    margin-bottom: 15px;
}

.crc-rate-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.crc-rate-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.crc-down-payment {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.crc-down-text {
    font-size: 14px;
    opacity: 0.95;
}

.crc-error {
    text-align: center;
    padding: 15px;
    color: #ffffff;
    font-size: 15px;
}

/* Konfigurator - na dole */
.crc-field {
    margin-bottom: 18px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 28, 63, 0.08);
}

.crc-label {
    display: block;
    color: #001C3F;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle (Firma/Prywatnie) */
.crc-toggle {
    display: flex;
    gap: 8px;
    background: #f5f7fa;
    padding: 5px;
    border-radius: 10px;
}

.crc-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #001C3F;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crc-toggle-btn:hover {
    background: rgba(0, 28, 63, 0.05);
}

.crc-toggle-btn.active {
    background: #001C3F;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 28, 63, 0.2);
}

/* Options - wszystkie w jednym rzędzie */
.crc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crc-option {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: #f5f7fa;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #001C3F;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.crc-option:hover {
    background: #e8ecf2;
    border-color: rgba(0, 28, 63, 0.15);
    transform: translateY(-1px);
}

.crc-option.active {
    background: #001C3F;
    color: #ffffff;
    border-color: #001C3F;
    box-shadow: 0 2px 8px rgba(0, 28, 63, 0.25);
}

/* Puste opcje */
.crc-options:empty::after {
    content: 'Brak dostępnych opcji';
    display: block;
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-style: italic;
    background: #f5f7fa;
    border-radius: 10px;
}

/* Responsive - tablet */
@media (max-width: 768px) {
    .crc-calculator {
        margin: 10px;
    }
    
    .crc-results {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .crc-rate-value {
        font-size: 28px;
    }
    
    .crc-field {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .crc-label {
        font-size: 12px;
    }
    
    .crc-option {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* Responsive - mobile */
@media (max-width: 480px) {
    .crc-calculator {
        margin: 10px 5px;
    }
    
    .crc-results {
        padding: 18px;
    }
    
    .crc-rate-value {
        font-size: 26px;
    }
    
    .crc-field {
        padding: 12px;
    }
    
    .crc-toggle-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .crc-option {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Na małych ekranach pozwól opcjom się zawijać */
    .crc-options {
        gap: 6px;
    }
}

/* Dla bardzo wąskich ekranów - 2 kolumny dla okresów/wpłat */
@media (max-width: 360px) {
    .crc-term-options .crc-option,
    .crc-down-options .crc-option {
        flex: 0 0 calc(50% - 3px);
    }
}