/* ========================================
   FINAL STEP COMPONENT
   ======================================== */

.icb-final-step-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Summary Card */
.icb-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    color: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.icb-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.icb-summary-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.icb-summary-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.icb-status-dot {
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.icb-summary-content {
    position: relative;
    z-index: 1;
}

.icb-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.icb-summary-item:last-of-type {
    border-bottom: none;
}

.icb-summary-icon {
    font-size: 18px;
    width: 30px;
    text-align: center;
    opacity: 0.7;
}

.icb-summary-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.icb-summary-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icb-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.icb-summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 15px 0;
}

.icb-summary-total {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
}

.icb-summary-total .icb-summary-details {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.icb-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.icb-summary-price-eur {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

/* Form Card */
.icb-form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.icb-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.icb-form-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.icb-form-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.icb-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.icb-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icb-form-field label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.icb-form-field .required {
    color: #ef4444;
}

.icb-form-field input,
.icb-form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.icb-form-field input:focus,
.icb-form-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.icb-form-field input::placeholder,
.icb-form-field textarea::placeholder {
    color: #9ca3af;
}

.icb-gdpr-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.icb-gdpr-section.validation-error {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.icb-checkbox-container {
    display: inline-block;
    width: 100%;
}

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

.icb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.icb-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.icb-checkbox-container input[type="checkbox"]:checked + .icb-checkbox-label .icb-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.icb-checkbox-container input[type="checkbox"]:checked + .icb-checkbox-label .icb-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.icb-checkbox-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    flex: 1;
}

.icb-checkbox-text a {
    color: #3b82f6;
    text-decoration: none;
}

.icb-checkbox-text a:hover {
    text-decoration: underline;
}

/* Responsive Design for Final Step */
@media (max-width: 768px) {
    .icb-final-step-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .icb-summary-card,
    .icb-form-card {
        padding: 20px;
    }
    
    .icb-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .icb-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Extra Small Screens (320px) */
@media (max-width: 320px) {
    .icb-final-step-container {
        gap: 15px;
    }
    
    .icb-summary-card {
        display: flex;
        flex-direction: column;
        width: fit-content;
        padding: 15px;
    }
    
    .icb-form-card {
        padding: 15px;
    }
    
    .icb-form-grid {
        gap: 12px;
    }
    
    .icb-summary-header h4 {
        font-size: 16px;
    }
    
    .icb-form-header h4 {
        font-size: 16px;
    }
    
    .icb-form-header p {
        font-size: 13px;
    }
    
    .icb-checkbox-text {
        font-size: 12px;
        line-height: 1.4;
    }
}
