/**
 * Multistep Blossem Form Styles
 * 
 * Styling for the custom multistep form with Dutch formatting
 */

/* ========================================
   Container & Layout
   ======================================== */

.multistep-blossem-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Proxima Nova", sans-serif;
}

.multistep-blossem-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* ========================================
   Progress Indicator
   ======================================== */

.multistep-progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.multistep-progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: #000000;
    color: #ffffff;
}

.progress-step.completed .progress-circle {
    background: #15803d;
    color: #ffffff;
}

.progress-step.completed .progress-circle::before {
    content: '✓';
    font-size: 18px;
    padding-right: 4px;
}

.progress-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    max-width: 120px;
}

.progress-step.active .progress-label {
    color: #000000;
    font-weight: 600;
}

/* ========================================
   Form Steps
   ======================================== */

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 30px;
}

.step-header h3 {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   Form Groups & Fields
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

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

.field-sublabel {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
}

.field-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ========================================
   Form Rows (Two Column Layout)
   ======================================== */

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

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

.form-row .form-group.half {
    flex: 1;
}

/* ========================================
   Phone Input
   ======================================== */

.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.phone-country-select {
    width: 120px !important;
    flex-shrink: 0;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* ========================================
   Checkbox & Radio Options
   ======================================== */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-option span,
.radio-option span {
    flex: 1;
}

/* ========================================
   Price Options
   ======================================== */

.price-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-options .radio-option {
    margin-bottom: 8px;
}

.price-options input[type="text"] {
    margin-top: 8px;
}

/* ========================================
   Form Navigation Buttons
   ======================================== */

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: none !important;
}

.btn-previous {
    background: #f3f4f6;
    color: #374151;
}

.btn-previous:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: #000000;
    color: #ffffff;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.btn-submit {
    background: #000000;
    border:2px solid #000000;
}

.btn-submit:hover {
    background: #333333;
    border:2px solid #333333;
    box-shadow: none !important;
}

.btn:disabled {
    opacity: 1;
    background: #9ca3af !important;
    color: #ffffff !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* ========================================
   Validation States
   ======================================== */

.form-group.error input,
.form-group.error select {
    border-color: #ef4444;
}

.form-group.error .error-message {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.error-message {
    display: none;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .multistep-blossem-form-container {
        padding: 24px 20px;
    }

    .multistep-progress-indicator {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .progress-label {
        font-size: 11px;
        max-width: 80px;
    }

    .progress-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .multistep-blossem-form-wrapper {
        padding: 0;
    }

    .multistep-blossem-form-container {
        padding: 20px 16px;
    }

    .progress-label {
        font-size: 10px;
        max-width: 100%;
        width: 60px;
        word-break: break-word;
        line-height: 1.2;
    }

    .progress-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 4px;
        margin-bottom: 4px;
    }

    .step-header h3 {
        font-size: 16px;
    }
}

/* ========================================
   Dutch Number Input Styling
   ======================================== */

.dutch-number-input {
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* ========================================
   Loading State
   ======================================== */

.multistep-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.multistep-form.loading::after {
    content: " ";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    border: 6.4px solid #3b82f6;
    border-color: #3b82f6 transparent #3b82f6 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
    box-sizing: border-box;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

/* ========================================
   Success & Error Messages
   ======================================== */

.form-success-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeIn 0.3s ease;
}

.form-success-message .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #15803d;
    color: #ffffff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success-message h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.form-success-message p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.form-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.form-error-message p {
    color: #dc2626;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Processing Notice
   ======================================== */

.form-processing-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

.form-processing-notice .processing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.form-processing-notice p {
    color: #1e40af;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}