/**
 * Frontend CSS für das Kontaktformular
 */

 .mcf-contact-form-container {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.mcf-contact-form {
    /*display: block;
    width: 100%;*/
	box-sizing: border-box;
}

.mcf-form-row {
    margin-bottom: 1.5rem;
}

.mcf-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.mcf-form-row input[type="text"],
.mcf-form-row input[type="email"],
.mcf-form-row input[type="tel"],
.mcf-form-row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em;
	margin:0;
	font-size:100%; 
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    line-height: 1.5;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mcf-form-row input[type="text"]:focus,
.mcf-form-row input[type="email"]:focus,
.mcf-form-row input[type="tel"]:focus,
.mcf-form-row textarea:focus {
    border-color: #4a6ea9;
    box-shadow: 0 0 0 2px rgba(74, 110, 169, 0.2);
    outline: none;
}

.mcf-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.mcf-form-row.mcf-consent {
    display: flex;
    align-items: flex-start;
}

.mcf-form-row.mcf-consent input[type="checkbox"] {
    margin-top: 0.3rem;
    margin-right: 0.75rem;
}

.mcf-form-row.mcf-consent label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mcf-submit-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4a6ea9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mcf-submit-button:hover {
    background-color: #3b5998;
}

.mcf-submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 110, 169, 0.5);
}

/* Spinner für das Absenden */
.mcf-submit-button.mcf-loading {
    position: relative;
    color: transparent;
}

.mcf-submit-button.mcf-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mcf-spin 1s linear infinite;
}

@keyframes mcf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form-Nachrichten */
.mcf-form-messages {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.mcf-form-messages.mcf-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mcf-form-messages.mcf-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Für Pflichtfelder */
.required {
    color: #dc3545;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mcf-contact-form-container {
        padding: 1rem;
    }

    .mcf-form-row {
        margin-bottom: 1rem;
    }
}