/* MC Kontaktformular Styles */

/* Modal/Lightbox */
.mc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mc-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.mc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mc-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: #1e3a8d;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
}

.mc-modal-close:hover {
    background: #152a6b;
    transform: scale(1.1);
}

.mc-kontaktformular-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Roboto', Arial, sans-serif;
}

.mc-kontaktformular-wrapper .card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mc-kontaktformular-wrapper .muted {
    color: #666;
    font-size: 14px;
}

.mc-kontaktformular .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mc-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .mc-modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 24px;
    }
    
    .mc-kontaktformular-wrapper .card {
        padding: 20px;
    }
    
    .mc-kontaktformular .form-grid {
        grid-template-columns: 1fr;
    }
}

.mc-kontaktformular label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mc-kontaktformular input[type="text"],
.mc-kontaktformular input[type="email"],
.mc-kontaktformular input[type="tel"],
.mc-kontaktformular textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mc-kontaktformular input[type="text"]:focus,
.mc-kontaktformular input[type="email"]:focus,
.mc-kontaktformular input[type="tel"]:focus,
.mc-kontaktformular textarea:focus {
    outline: none;
    border-color: var(--primary, #0073aa);
}

.mc-kontaktformular textarea {
    min-height: 120px;
    resize: vertical;
}

.mc-kontaktformular .btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.mc-kontaktformular .btn-primary {
    background-color: #223e8c;
    color: #ffffff;
}

.mc-kontaktformular .btn-primary:hover {
    background-color: #1a2f6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mc-kontaktformular .btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.mc-kontaktformular .small {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.mc-kontaktformular .small a {
    color: var(--primary, #0073aa);
    text-decoration: none;
}

.mc-kontaktformular .small a:hover {
    text-decoration: underline;
}

/* Nachrichten */
.mc-form-messages {
    margin-bottom: 20px;
}

.mc-form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.mc-form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mc-form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading State */
.mc-kontaktformular.loading {
    opacity: 0.6;
    pointer-events: none;
}

.mc-kontaktformular.loading .btn-primary::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
