/**
 * Badkamer Calculator CSS
 * Een modern zwart/wit design voor de badkamer calculator
 */

/* Algemene stijlen */
.badkamer-calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Voortgangsbalk */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar-container {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #000;
    width: 0;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #000;
    color: #fff;
}

.progress-step.completed {
    background-color: #000;
    color: #fff;
}

/* Card stijlen */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 30px;
}

.card-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #000;
}

.card-subtitle {
    margin-top: -15px;
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

/* Formulier elementen */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-group-half {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Verplichte velden */
.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Range slider */
.form-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background-color: #f0f0f0;
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000;
    cursor: pointer;
    border: none;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Radio buttons en checkboxes */
.form-check {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.form-check-input {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ddd;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.form-check-input:checked::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    transform: none;
}

.form-check-label {
    font-size: 16px;
    cursor: pointer;
}

.form-check-label p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.spacer {
    flex: 1;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
}

/* Resultaat styling */
.calculator-result {
    margin-top: 20px;
}

.result-price {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.price-note {
    color: #6c757d;
    font-size: 0.9rem;
}

.result-confirmation {
    margin-bottom: 20px;
}

.result-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-details ul {
    margin-bottom: 0;
}

/* Error stijlen */
.calculator-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* reCAPTCHA v3 */
.g-recaptcha-response-container {
    display: none;
}

/* Spinner voor laden */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .progress-step {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    /* Zorg dat knoppen ook op mobiel rechts staan */
    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .button-container .btn {
        width: auto;
        margin-left: 10px;
        margin-top: 5px;
    }
    
    .button-container .btn-outline-secondary {
        order: 1;
    }
    
    .button-container .btn-primary,
    .button-container .calculate-price,
    .button-container .reset-calculator {
        order: 2;
    }
    
    /* Maak form-group-half full width op mobiel */
    .form-group-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Animaties */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-step, .calculator-result {
    animation: fadeIn 0.5s ease;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-overlay::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spinner for button */
.calculate-price .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
} 