.contact-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-title {
    text-align: center;
    color: #1976d2;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
    font-weight: 600;
}

.checkbox-group label,
.form-group div label {
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 95%;
    max-width: 340px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    color: #222;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #1976d2;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #111;
}

.privacy-link {
    color: #1976d2;
    text-decoration: underline;
}

.privacy-link:hover {
    text-decoration: none;
}

.submit-button {
    width: 100%;
    padding: 14px 24px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #1256a3;
}

.submit-button:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #4CAF50;
    color: #388e3c;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #F44336;
    color: #c62828;
}

.required {
    color: #F44336;
}

.form-section {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
}

.km-course-tile-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.km-course-tile {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 160px;
    height: 180px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: none;
}

.km-course-tile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(25,118,210,0.10);
    border: 3px solid #e0e0e0;
    background: #f5f5f5;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.km-course-tile.selected .km-course-tile-img,
.km-course-tile:hover .km-course-tile-img {
    border-color: #1976d2;
    box-shadow: 0 6px 24px rgba(25,118,210,0.18);
}

.km-course-tile-title {
    margin-top: 0.5rem;
    background: none;
    border-radius: 0;
    font-size: 1.08rem;
    color: #1976d2;
    font-weight: 600;
    padding: 0;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none;
    position: static;
    z-index: 1;
    display: block;
}

.location-block h4[data-location='Karlsruhe'],
.location-block h4[data-location='Waldbronn'],
.location-block h4[data-location='Durlach'] {
    color: #111;
}

.location-flex-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.location-flex-row > .slot-checkbox-list,
.location-flex-row > .location-info {
    flex: 1 1 50%;
    max-width: 50%;
}
.location-info {
    padding-left: 2rem;
    display: flex;
    align-items: flex-start;
    min-height: 100px;
    color: #111;
}
.location-info div {
    color: #111;
}
.location-info a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.98rem;
}
.location-info a:hover {
    text-decoration: none;
}
@media (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select {
        width: 100%;
        max-width: 100%;
    }
    .km-course-tile-grid {
        gap: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .km-course-tile {
        width: 120px;
        height: 140px;
    }
    .km-course-tile-img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }
    .km-course-tile-title {
        width: auto;
        font-size: 0.95rem;
        margin-top: 0.4rem;
        padding: 0;
    }
    .location-flex-row {
        flex-direction: column;
    }
    .location-flex-row > .slot-checkbox-list,
    .location-flex-row > .location-info {
        max-width: 100%;
        padding-left: 0;
    }
    .location-info {
        margin-top: 1rem;
        min-height: unset;
    }
    .km-course-tile-grid {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .km-course-tile {
        width: 98vw;
        max-width: 420px;
        min-width: 180px;
        height: 140px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 1rem;
        box-shadow: 0 2px 8px rgba(25,118,210,0.08);
        margin: 0 auto 0.7rem auto;
    }
    .km-course-tile-img {
        width: 90px;
        height: 90px;
        margin-bottom: 0;
        margin-right: 1.2rem;
        border-radius: 12px;
    }
    .km-course-tile-title {
        font-size: 1.15rem;
        margin-top: 0;
        align-self: center;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        color: #1976d2;
        font-weight: 600;
    }
    .km-course-tile-img {
        margin-right: 0.5rem;
    }
    .km-course-tile-title {
        font-size: 1.15rem;
        margin-top: 0;
        align-self: center;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        color: #1976d2;
        font-weight: 600;
        display: inline-block;
        vertical-align: middle;
    }
    .km-course-tile {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .slot-checkbox-list {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .checkbox-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex;
        align-items: center;
        padding: 0.3rem 0.2rem;
        margin-bottom: 0.3rem;
        box-sizing: border-box;
    }
    .checkbox-card label {
        font-size: 1.05rem;
        width: 100%;
        padding-left: 0.5rem;
        word-break: break-word;
    }
    .km-course-tile-grid {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .km-course-tile {
        width: 98vw;
        max-width: 420px;
        min-width: 180px;
        height: 140px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 1rem;
        box-shadow: 0 2px 8px rgba(25,118,210,0.08);
    }
    .km-course-tile-img {
        width: 90px;
        height: 90px;
        margin-bottom: 0;
        margin-right: 1.2rem;
        border-radius: 12px;
    }
    .km-course-tile-title {
        font-size: 1.15rem;
        margin-top: 0;
        align-self: center;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        color: #1976d2;
        font-weight: 600;
    }
    .km-course-tile-img {
        margin-right: 0.5rem;
    }
    .form-group > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 0.7rem !important;
    }
    .form-group > div[style*="display: flex"] label {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 400px) {
    .km-course-tile-grid {
        width: 100vw !important;
        overflow-x: auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.2rem !important;
    }
    .km-course-tile {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 0 0.2rem 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    .km-course-tile-img {
        width: 24px !important;
        height: 24px !important;
        margin-right: 0.3rem !important;
        margin-bottom: 0 !important;
        border-radius: 8px !important;
    }
    .km-course-tile-title {
        font-size: 0.85rem !important;
        margin-top: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
} 

.form-section > * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
.km-course-tile-grid,
.slot-checkbox-list,
.checkbox-card {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
} 

@media (max-width: 415px) and (min-width: 410px) and (max-height: 900px) {
    .km-course-tile-img {
        margin-right: 0.2rem !important;
    }
} 