/* =========================================================
   GASTROMEDIA – CONTACT FORM 7
   ========================================================= */

.gastro-form {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: #222 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.gastro-form *,
.gastro-form *::before,
.gastro-form *::after {
    box-sizing: border-box !important;
}

/* Intro */
.gastro-intro {
    margin: 0 0 36px 0 !important;
    padding: 0 !important;
}

.gastro-eyebrow {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #777 !important;
}

.gastro-intro h1 {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    font-size: 44px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #222 !important;
}

.gastro-intro p {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 820px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #777 !important;
}

/* Sections */
.gastro-section {
    display: block !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 28px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Section header */
.gastro-form .section-head {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 26px 0 !important;
    padding: 0 !important;
    gap: 12px !important;
}

.gastro-form .section-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #777 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

.gastro-form .section-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    color: #222 !important;
}

/* Grid */
.gastro-form .gastro-grid {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px 18px !important;
    align-items: start !important;
}

.gastro-form .gastro-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gastro-form .gastro-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.gastro-form .gastro-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* CF7 auto formatting */
.gastro-form .gastro-grid > br {
    display: none !important;
}

.gastro-form .gastro-grid > p {
    display: contents !important;
}

/* Fields */
.gastro-form .gastro-field {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gastro-form .gastro-field-full {
    grid-column: 1 / -1 !important;
}

/* Labels */
.gastro-form .gastro-field label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 9px 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.gastro-form .required {
    color: #e66a00 !important;
    font-weight: 700 !important;
}

.gastro-form .optional {
    margin-left: 5px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #999 !important;
}

/* Inputs */
.gastro-form input[type="text"],
.gastro-form input[type="email"],
.gastro-form input[type="tel"],
.gastro-form input[type="url"],
.gastro-form input[type="number"],
.gastro-form textarea,
.gastro-form select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #222 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.gastro-form input[type="text"]:focus,
.gastro-form input[type="email"]:focus,
.gastro-form input[type="tel"]:focus,
.gastro-form input[type="url"]:focus,
.gastro-form input[type="number"]:focus,
.gastro-form textarea:focus,
.gastro-form select:focus {
    border-color: #999 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05) !important;
    outline: none !important;
}

.gastro-form input::placeholder,
.gastro-form textarea::placeholder {
    color: #aaa !important;
    opacity: 1 !important;
}

.gastro-form textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

/* Radio / checkbox */
.gastro-form .gastro-options {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gastro-form .gastro-options-wrap {
    flex-wrap: wrap !important;
}

.gastro-form .gastro-options label {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #dedede !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #444 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gastro-form .gastro-options label:hover {
    border-color: #aaa !important;
    background: #fafafa !important;
}

.gastro-form .gastro-options input[type="radio"],
.gastro-form .gastro-options input[type="checkbox"] {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 7px 0 0 !important;
    padding: 0 !important;
}

.gastro-form .wpcf7-list-item {
    margin: 0 !important;
}

.gastro-form .wpcf7-list-item label {
    margin: 0 !important;
}

/* Upload */
.gastro-upload-info {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #777 !important;
}

.gastro-upload {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 86px !important;
    padding: 18px !important;
    border: 1px dashed #ccc !important;
    border-radius: 7px !important;
    background: #fafafa !important;
}

.gastro-upload-icon {
    flex: 0 0 auto !important;
    font-size: 25px !important;
}

.gastro-upload-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 1 auto !important;
}

.gastro-upload-content strong {
    font-size: 14px !important;
    color: #e66a00 !important;
}

.gastro-upload-content span {
    font-size: 12px !important;
    color: #888 !important;
}

.gastro-upload input[type="file"] {
    display: block !important;
    max-width: 100% !important;
    font-size: 13px !important;
}

/* Footer */
.gastro-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 28px 0 0 0 !important;
    padding: 0 !important;
}

.gastro-acceptance {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #777 !important;
}

.gastro-acceptance .wpcf7-list-item {
    margin: 0 !important;
}

.gastro-acceptance label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
}

.gastro-acceptance input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin-top: 3px !important;
}

/* Submit */
.gastro-submit {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gastro-form input[type="submit"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 175px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #111 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.gastro-form input[type="submit"]:hover {
    background: #333 !important;
}

/* CF7 errors */
.gastro-form .wpcf7-not-valid-tip {
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.gastro-form .wpcf7-response-output {
    margin: 22px 0 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}

/* Tablet */
@media (max-width: 1000px) {
    .gastro-form .gastro-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gastro-form .gastro-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gastro-intro h1 {
        font-size: 38px !important;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .gastro-form {
        font-size: 15px !important;
    }

    .gastro-intro {
        margin-bottom: 28px !important;
    }

    .gastro-intro h1 {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }

    .gastro-intro p {
        font-size: 15px !important;
    }

    .gastro-section {
        margin-bottom: 14px !important;
        padding: 20px !important;
        border-radius: 9px !important;
    }

    .gastro-form .section-head {
        margin-bottom: 21px !important;
    }

    .gastro-form .section-head h2 {
        font-size: 16px !important;
    }

    .gastro-form .gastro-grid,
    .gastro-form .gastro-grid-2,
    .gastro-form .gastro-grid-3,
    .gastro-form .gastro-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gastro-form .gastro-field-full {
        grid-column: auto !important;
    }

    .gastro-form .gastro-field label {
        font-size: 14px !important;
    }

    .gastro-form input[type="text"],
    .gastro-form input[type="email"],
    .gastro-form input[type="tel"],
    .gastro-form input[type="url"],
    .gastro-form input[type="number"],
    .gastro-form textarea,
    .gastro-form select {
        min-height: 50px !important;
        font-size: 15px !important;
    }

    .gastro-form .gastro-options label {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .gastro-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
    }

    .gastro-submit {
        width: 100% !important;
    }

    .gastro-form input[type="submit"] {
        width: 100% !important;
        min-height: 50px !important;
        font-size: 14px !important;
    }

    .gastro-upload {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* Very small smartphones */
@media (max-width: 400px) {
    .gastro-intro h1 {
        font-size: 28px !important;
    }

    .gastro-section {
        padding: 17px !important;
    }

    .gastro-form .section-head h2 {
        font-size: 15px !important;
    }
}


/* =========================================================
   Datenschutz / Acceptance – Fehlerzustand
   ========================================================= */

.gastro-form .wpcf7-acceptance {
    display: block !important;
    margin-bottom: 15px !important;
}

.gastro-form .wpcf7-acceptance label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.gastro-form .wpcf7-acceptance input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin-top: 4px !important;
}

/* Nicht bestätigte Pflicht-Zustimmung */
.gastro-form .wpcf7-acceptance.wpcf7-not-valid {
    padding: 12px 14px !important;
    border: 1px solid #d63638 !important;
    border-radius: 6px !important;
    background: #fff5f5 !important;
}

.gastro-form .wpcf7-acceptance.wpcf7-not-valid label {
    color: #d63638 !important;
    font-weight: 600 !important;
}
