/* =====================================================
   MODERN FORM LAYOUT
===================================================== */

.mailformular {
    background: #fff;
    border: 1px solid var(--line, #ececef);
    border-radius: 16px;
    padding: 36px 36px 28px;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.05);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.form_title {
    width: 130px;
    float: left;
    margin-bottom: 16px;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

.form_field {
    width: 460px;
    float: left;
    margin-bottom: 16px;
}

.form_field input[type="text"],
.form_field input[type="email"],
.form_field input[type="tel"] {
    width: 100%;
    border: 1.5px solid #e4e4e8;
    border-radius: 10px;
    font-size: 14px;
    height: 42px;
    padding: 8px 14px;
    background-color: #fcfcfd;
    color: #1a1a1a;
    font-family: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
    transition: border-color 0.15s ease, box-shadow 0.18s ease, background 0.15s ease;
    outline: none;
    -webkit-appearance: none;
}

.form_field input[type="text"]:hover,
.form_field input[type="email"]:hover,
.form_field input[type="tel"]:hover {
    border-color: #cfcfd5;
    background-color: #fff;
}

.form_field input[type="text"]:focus,
.form_field input[type="email"]:focus,
.form_field input[type="tel"]:focus {
    border-color: #c31924;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(195, 25, 36, 0.10);
}

.form_field textarea {
    width: 100%;
    border: 1.5px solid #e4e4e8;
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 14px;
    background-color: #fcfcfd;
    color: #1a1a1a;
    font-family: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
    transition: border-color 0.15s ease, box-shadow 0.18s ease, background 0.15s ease;
    outline: none;
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form_field textarea:hover {
    border-color: #cfcfd5;
    background-color: #fff;
}

.form_field textarea:focus {
    border-color: #c31924;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(195, 25, 36, 0.10);
}

.form_field select {
    width: 100%;
    border: 1.5px solid #e4e4e8;
    border-radius: 10px;
    font-size: 14px;
    padding: 8px 40px 8px 14px;
    height: 42px;
    background-color: #fcfcfd;
    color: #1a1a1a;
    font-family: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
    transition: border-color 0.15s ease, box-shadow 0.18s ease, background 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6d75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.form_field select:hover {
    border-color: #cfcfd5;
    background-color: #fff;
}

.form_field select:focus {
    border-color: #c31924;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(195, 25, 36, 0.10);
}

/* Custom file input */
.form_field input[type="file"] {
    width: 100%;
    border: 1.5px dashed #d4d4da;
    border-radius: 10px;
    padding: 10px 14px;
    background-color: #fafafb;
    font-size: 13px;
    color: #4a4a52;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.form_field input[type="file"]:hover {
    border-color: #c31924;
    background-color: #fff8f8;
}

.form_field input[type="file"]::-webkit-file-upload-button {
    background: #fff;
    border: 1px solid #d4d4da;
    border-radius: 6px;
    padding: 6px 14px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.form_field input[type="file"]:hover::-webkit-file-upload-button {
    background: #c31924;
    border-color: #c31924;
    color: #fff;
}

/* Checkbox refinement */
.form_field input[type="checkbox"].checkbox {
    width: 18px !important;
    height: 18px;
    accent-color: #c31924;
    vertical-align: middle;
    cursor: pointer;
}

.datenschutztext {
    background: #f7f7f8;
    border: 1px solid #ececef;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a52;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.datenschutztext a {
    color: #c31924;
    font-weight: 600;
}

.datenschutztext a:hover { color: #9e1219; }

.fehlermeldung {
    color: #c31924;
    font-size: 12.5px;
    margin-top: 4px;
    font-weight: 500;
}

.status {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    color: #c31924;
    font-size: 14px;
    font-weight: 500;
}

/* Status boxes (success / error) inline */
.status.error,
div.status[style*="ffe0e0"] {
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-weight: 500;
}

div.status[style*="e0ffe0"] {
    border-radius: 12px !important;
    padding: 16px 20px !important;
}


/* Form title group hint (helper paragraph as form_title block) */
.form_title.form_hint,
.form_title[style*="width:585px"] {
    width: 100% !important;
    float: none !important;
    color: #6d6d75;
    font-weight: 500;
    background: #f7f7f8;
    border-left: 3px solid #c31924;
    padding: 10px 14px !important;
    border-radius: 8px;
    margin: 8px 0 18px;
}


/* Submit button area  */
.form_field .btn_grey,
.form_field button.btn_grey {
    background: linear-gradient(135deg, #d62330 0%, #a8121c 60%, #7a0d12 100%) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    padding: 13px 30px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 14px 32px rgba(195, 25, 36, 0.22) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s !important;
    cursor: pointer;
    width: auto !important;
    display: inline-block;
    text-align: center;
    font-family: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
}

.form_field .btn_grey:hover,
.form_field button.btn_grey:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 44px rgba(195, 25, 36, 0.32) !important;
    color: #fff !important;
}


/* =====================================================
   RESPONSIVE FORM  ≤ 768 px
===================================================== */

@media (max-width: 768px) {

    .mailformular {
        padding: 24px 18px 18px;
        border-radius: 14px;
    }

    .form_title {
        width: 100%;
        float: none;
        margin-bottom: 6px;
        padding-top: 0;
    }

    .form_field {
        width: 100% !important;
        float: none;
        margin-bottom: 16px;
        clear: both;
    }

    .form_field input[type="text"],
    .form_field input[type="email"],
    .form_field input[type="tel"],
    .form_field select {
        height: 46px;
        font-size: 15px;
    }

    .form_field textarea {
        min-height: 150px;
        font-size: 15px;
    }
}
