/* Contact Background Wrapper */
.contact-bg-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Contact Section */
.contact-section {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
    width: 100%;
    max-width: 100%;
}

.contact-wrapper {
    position: relative;
    z-index: 3;
}

/* Full width background */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    z-index: -1;
}

.contact-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--gray-100);
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.newsletter-optin {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: -0.5rem;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin: 3rem auto 0;
    width: 100%;
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem;
    gap: 1rem;
}

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

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.progress-connector {
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

/* Trust Card */
.trust-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.trust-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.5;
}

.trust-list i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

/* Form Elements */
.multi-step-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-step {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.prev-step:hover {
    background: #f1f5f9;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.form-success p {
    color: #64748b;
    line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

.contact-info {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.social-proof {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.contact-benefits i {
    color: var(--primary);
}

.form-dsgvo {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.contact-dsgvo {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    padding: 0 0.5rem;
}

.dsgvo-hint {
    font-size: 0.85rem;
    color: var(--gray-300);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Form Success Message */
#formSuccess {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    margin-top: 1rem;
}

#formSuccess i {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
    display: block;
}
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 5rem 0;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Mobile-first approach for contact grid */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Move form to top on mobile */
    .contact-grid > *:last-child {
        order: -1;
    }
    
    /* Adjust spacing for mobile */
    .contact-info {
        margin-top: 2rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.trust-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.trust-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.trust-list i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.testimonial-quote {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-top: 2rem;
}

.quote-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.dsgvo-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

.dsgvo-note i {
    color: var(--primary);
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto 2.5rem;
    position: relative;
}

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

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-step.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
    position: relative;
}

.progress-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-step.active ~ .progress-connector::after {
    width: 100%;
}

/* Urgency Badge Container */
.urgency-badge-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 2.5rem;
}

/* Urgency Badge */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Form Styles */
.multi-step-form {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

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

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '' !important;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748b;
    pointer-events: none;
    font-size: 0;
    line-height: 0;
}

select.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    width: 100%;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select.custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Remove default arrow in IE10+ */
select.custom-select::-ms-expand {
    display: none;
}

/* Remove default arrow in Firefox */
@-moz-document url-prefix() {
    select.custom-select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 2.5rem;
    }
}

.checkbox-group {
    padding: 0; /* Entfernt Standard-Padding der form-group */
    margin: 0; /* Entfernt Standard-Margins */
}

.checkbox-group .checkbox-container {
    display: flex;
    align-items: flex-start; /* Ausrichtung am oberen Rand */
    gap: 0.75rem;
    margin: 0; /* Kein Außenabstand */
    padding: 0; /* Kein Innenabstand */
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--primary);
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.25rem 0 0 0; /* Leichter Abstand nach oben für bessere Ausrichtung mit Text */
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    padding: 0;
    text-align: left;
    display: inline-block;
    vertical-align: middle;
}

/* Desktop-Ansicht */
@media (min-width: 768px) {
    .checkbox-group .checkbox-container {
        margin-left: 0;
        padding-left: 0;
    }
}

/* Mobile Ansicht */
@media (max-width: 767px) {
    .checkbox-group .checkbox-container {
        flex-direction: row; /* Ändere zu row für bessere Kontrolle */
        align-items: flex-start;
        gap: 0.75rem;
        margin-left: 0;
        padding-left: 0;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.form-actions .prev-step {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.form-actions .prev-step:hover {
    color: var(--primary-dark);
    transform: translateX(-3px);
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .multi-step-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .form-progress {
        max-width: 320px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .step-text {
        font-size: 0.8125rem;
    }
    
    .multi-step-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .cta-button,
    .form-actions .prev-step {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode */
.dark-mode .contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark-mode .trust-card {
    background: #1e293b;
    color: #e2e8f0;
}

.dark-mode .trust-card h3,
.dark-mode .author-name {
    color: #f8fafc;
}

.dark-mode .trust-list li,
.dark-mode .quote-text,
.dark-mode .author-role,
.dark-mode .form-group label {
    color: #cbd5e1;
}

.dark-mode .testimonial-quote {
    background: #1e293b;
    border-left-color: var(--accent);
}

.dark-mode .multi-step-form {
    background: #1e293b;
    color: #e2e8f0;
}

.dark-mode .form-group input[type="text"],
.dark-mode .form-group input[type="email"],
.dark-mode .form-group textarea,

/* Next Step Button Anpassung */
.next-step i {
    margin-left: 0.5rem;
}

.dark-mode .form-group textarea,
.dark-mode .form-group select {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .form-group input[type="text"]:focus,
.dark-mode .form-group input[type="email"]:focus,
.dark-mode .form-group textarea:focus,
.dark-mode .form-group select:focus {
    background-color: #0f172a;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.dark-mode .select-wrapper::after {
    color: #94a3b8;
}

.dark-mode .form-success h3 {
    color: #f8fafc;
}

.dark-mode .form-success p {
    color: #cbd5e1;
}

/* Section Header */
.contact-section .section-header h2 {
    color: white; /* Match instructor section heading color */
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-section .section-header p {
    color: #cbd5e1; /* Match instructor section description color */
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
