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

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

.ecount-simple-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-simple-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;
}

/* Reason Selection */
.reason-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.reason-option {
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    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;
}

.reason-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;
}

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

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

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

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

.reason-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.reason-content p {
    font-size: 0.95rem;
    color: #7f8c8d;
}

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

.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: 6px;
    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);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

/* Contact Preferences */
.contact-preferences {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.contact-preferences h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    min-width: 150px;
}

.contact-option:hover {
    border-color: #4A90E2;
    background: #f8f9fa;
}

.contact-option.selected {
    border-color: #7ED321;
    background: #f0fff4;
}

.contact-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #7ED321;
}

.contact-option label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Callback specific styles */
.callback-content {
    margin-top: 30px;
}

.topic-description {
    margin: 25px 0;
}

/* Privacy Policy */
.privacy-policy {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border: 2px solid #ffeaa7;
    border-radius: 8px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #4A90E2;
}

.privacy-checkbox label {
    margin-bottom: 0;
    line-height: 1.5;
    color: #2c3e50;
}

.privacy-checkbox a {
    color: #4A90E2;
    text-decoration: none;
}

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

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    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;
}

.btn-primary:hover {
    background: #2E5BBA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

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

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

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3);
}

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

.btn-success:hover {
    background: linear-gradient(135deg, #50E3C2, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 211, 33, 0.3);
}

/* 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;
}

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

.contact-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: 8px;
    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); }
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .ecount-simple-form {
        margin: 10px;
        border-radius: 8px;
    }
    
    .step-overview {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .step-content {
        padding: 30px 20px;
    }
    
    .reason-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-fields-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-option {
        min-width: auto;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

/* Force light design - ignores Dark Mode */
.ecount-simple-form {
    background: #ffffff !important;
    color: #2c3e50 !important;
    color-scheme: light !important;
}

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

.ecount-simple-form .reason-option,
.ecount-simple-form .contact-option {
    background: #ffffff !important;
    border-color: #e9ecef !important;
    color: #2c3e50 !important;
}

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

.ecount-simple-form .contact-option.selected {
    background: #f0fff4 !important;
}

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

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

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

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

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

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

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

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

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

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

.ecount-simple-form .contact-preferences {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
}

.ecount-simple-form .privacy-policy {
    background: linear-gradient(135deg, #fff3cd, #ffffff) !important;
}

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

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