/**
 * eCOUNT Contact Form Styles
 * Modern, professional and interactive design
 * eCOUNT CI colors, shadows removed, clean look
 */

/* Reset and Base Styles */
.ecount-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ecount-form {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Header Styles - Komplett entfernt */
.ecount-form-header {
    display: none;
}

/* Step Progress Indicator */
.step-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #ffffff;
    flex-wrap: wrap;
    gap: 20px;
}

.step-indicator {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-number.active {
    background: linear-gradient(135deg, #4A90E2, #2E5BBA);
    color: white;
    transform: scale(1.15);
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #2E5BBA);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.step-number.active::before {
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.step-title {
    margin-left: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.arrow {
    margin: 0 20px;
    font-size: 1.8rem;
    color: #bdc3c7;
    font-weight: bold;
}

/* Form Content */
.step-content {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.step-content.active {
    display: block;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-heading {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.step-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4A90E2, #7ED321);
    border-radius: 3px;
}

/* Business Selection */
.business-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.business-option {
    padding: 30px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.business-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4A90E2, #7ED321);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.business-option:hover::before {
    transform: scaleX(1);
}

.business-option:hover {
    border-color: #4A90E2;
    transform: translateY(-5px);
}

.business-option.selected {
    border-color: #4A90E2;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
    transform: translateY(-5px) scale(1.02);
}

.business-option.selected::before {
    background: linear-gradient(135deg, #7ED321, #50E3C2);
    transform: scaleX(1);
    left: 0;
}

.business-content h4 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.business-content p {
    margin-bottom: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.business-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Form Fields */
.contact-fields-grid,
.product-details-grid,
.icd-details-grid,
.icd-component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Specific styling for ICD component grid */
.icd-component-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .icd-component-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4A90E2;
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.product-item {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4A90E2, #7ED321);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-item:hover {
    border-color: #4A90E2;
    transform: translateY(-3px);
}

.product-item:hover::before {
    transform: scaleX(1);
}

.product-item.selected {
    border-color: #7ED321;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.product-item.selected::before {
    background: linear-gradient(135deg, #7ED321, #50E3C2);
    transform: scaleX(1);
}

.radio-product {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.radio-product input[type="radio"] {
    margin-top: 5px;
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #4A90E2;
}

.product-info strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.product-info small {
    color: #7f8c8d;
    display: block;
    margin-bottom: 8px;
}

.product-info code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #4A90E2;
}

/* Accessory Section */
.accessory-section {
    background: linear-gradient(135deg, #f0fff4, #ffffff);
    padding: 25px;
    border-radius: 3px;
    border: 2px solid #7ED321;
    margin-top: 30px;
    position: relative;
}

.accessory-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #7ED321, #50E3C2);
    border-radius: 3px;
    z-index: -1;
}

.accessory-title {
    color: #7ED321;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.accessory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.accessory-item {
    padding: 18px;
    border: 2px solid #7ED321;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
}

.accessory-item:hover {
    border-color: #50E3C2;
    background: #f9fff9;
    transform: translateY(-2px);
}

.accessory-item.selected {
    border-color: #50E3C2;
    background: #E8F5E9;
}

.accessory-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 5px;
    transform: scale(1.2);
    accent-color: #7ED321;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #4A90E2;
    color: white;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #2E5BBA;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #7ED321, #50E3C2);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #50E3C2, #27ae60);
    transform: translateY(-3px);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Confirmation Page */
.confirmation-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #7ED321;
    animation: bounce 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controller-board-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3));
}

.controller-board-icon:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.success-title {
    color: #7ED321;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
}

.success-message {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.next-steps {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 3px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.next-steps h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.next-steps ul {
    color: #7f8c8d;
    line-height: 1.8;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ecount-form {
        margin: 10px;
        border-radius: 3px;
    }
    
    .step-overview {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .step-content {
        padding: 30px 20px;
    }
    
    .business-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-fields-grid,
    .product-details-grid,
    .icd-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .accessory-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

/* Forciert helles Design - ignoriert Dark Mode */
.ecount-form {
    background: #ffffff !important;
    color: #2c3e50 !important;
    color-scheme: light !important;
}

.ecount-form *,
.ecount-form *::before,
.ecount-form *::after {
    color-scheme: light !important;
}

.ecount-form .business-option,
.ecount-form .product-item,
.ecount-form .accessory-item {
    background: #ffffff !important;
    border-color: #e9ecef !important;
    color: #2c3e50 !important;
}

.ecount-form .business-option.selected {
    background: linear-gradient(135deg, #f0fff4, #ffffff) !important;
}

.ecount-form .product-item.selected {
    background: linear-gradient(135deg, #f0fff4, #ffffff) !important;
}

.ecount-form .accessory-item.selected {
    background: #E8F5E9 !important;
}

.ecount-form .form-field input,
.ecount-form .form-field textarea {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #2c3e50 !important;
}

.ecount-form .form-field label {
    color: #2c3e50 !important;
}

.ecount-form .next-steps {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
}

.ecount-form .controller-board-icon {
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3)) !important;
}

.ecount-form .loading-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
}

.ecount-form .step-title,
.ecount-form .step-heading,
.ecount-form .product-section-title,
.ecount-form .accessory-title {
    color: #2c3e50 !important;
}

.ecount-form .step-heading::after {
    background: linear-gradient(135deg, #4A90E2, #7ED321) !important;
}

.ecount-form .product-info strong {
    color: #2c3e50 !important;
}

.ecount-form .product-info small {
    color: #7f8c8d !important;
}

.ecount-form .product-info code {
    background: #f8f9fa !important;
    color: #4A90E2 !important;
}

.ecount-form .success-title {
    color: #7ED321 !important;
}

.ecount-form .success-message {
    color: #7f8c8d !important;
}

.ecount-form .next-steps h4 {
    color: #2c3e50 !important;
}

.ecount-form .next-steps ul,
.ecount-form .next-steps li {
    color: #7f8c8d !important;
}

.ecount-form .accessory-section {
    background: linear-gradient(135deg, #f0fff4, #ffffff) !important;
}

/* Placeholder Text auch im Dark Mode hell halten */
.ecount-form .form-field input::placeholder,
.ecount-form .form-field textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.7 !important;
}

/* Weitere Dark Mode Überschreibungen */
.ecount-form .business-content h4,
.ecount-form .business-content p,
.ecount-form .business-content small {
    color: #2c3e50 !important;
}

.ecount-form .accessory-item strong,
.ecount-form .accessory-item small,
.ecount-form .accessory-item code {
    color: #2c3e50 !important;
}

.ecount-form .accessory-item code {
    background: #f8f9fa !important;
    color: #4A90E2 !important;
}

/* Hover Effekte beibehalten */
.ecount-form .business-option:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
}

.ecount-form .product-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
}

.ecount-form .accessory-item:hover {
    background: #f9fff9 !important;
}

/* Conditional content visibility - highly specific to avoid conflicts */
.ecount-form .step-content .conditional-content {
    display: none !important;
}

.ecount-form .step-content .conditional-content.active {
    display: block !important;
}

/* Notification Messages */
.ecount-notification {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid;
    animation: slideInDown 0.3s ease;
}

.ecount-notification--success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.ecount-notification--error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.ecount-notification--info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.ecount-notification__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecount-notification__message {
    flex: 1;
}

.ecount-notification__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ecount-notification__close:hover {
    opacity: 1;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .ecount-form {
        border: 1px solid #ddd;
    }
    
    .step-content:not(.active) {
        display: none !important;
    }
    
    .form-navigation {
        display: none;
    }
    
    .loading-overlay {
        display: none !important;
    }
}