/* ============================================================
   CONTACTFORM STYLES
   ============================================================ */

/* Basis-Einstellungen & Datepicker */
.ui-datepicker { 
    font-size: 9pt !important; 
}

/* Haupt-Container (Der äußere Rahmen) */
#contactform {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 !important;
    border: none !important;
    background-color: transparent;
    box-shadow: none !important;
    outline: none !important;
}

/* Inhalts-Container */
#contactform-content {
    padding: 20px;
    border: none !important;
}

/* Formular-Elemente (Abstände) */
#contactform-content .element {
    margin-bottom: 15px;
    padding: 2px 0;
    clear: both;
    width: 100%;
}

/* Label-Styling */
#contactform-content .label {
    display: block;
    color: #4DBCE9;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 5px;
}

/* Input & Select Felder */
#contactform-content .af-inputtext,
#contactform-content .af-select {
    color: #000;
    font-family: Verdana, sans-serif;
    font-size: 1.0em;
    width: 100% !important;
    max-width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
}

/* Captcha & Spezielle Felder */
.captcha_img {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.option-container input[type=radio], 
.option-container input[type=checkbox] {
    margin-right: 6px;
}

/* Submit Button */
.submit {
    cursor: pointer;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.3em;
    font-weight: bold;
    background-color: #339cde;
    border: 1px solid #077bc6;
    width: 200px;
    max-width: 250px;
    border-radius: 5px;
    padding: 12px;
    transition: opacity 0.2s;
    display: block;
    margin-top: 10px;
}

.submit:hover {
    opacity: 0.9;
}

/* Validierung & Fehler */
.errormessage {
    color: #ff0000;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.8em;
    margin-bottom: 5px;
    min-height: 1em;
    display: none;
}

#validation {
    display: none;
    background: url('../img/loading.gif') no-repeat 0 1px;
    padding-left: 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin-top: 10px;
}

/* Pflichtfelder */
.required {
    color: #990000;
    margin-right: 6px;
    font-family: Arial, sans-serif;
}

.required small {
    color: #666;
}

/* Payment & Twint Boxen */
.payment-box, .twint-area {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.payment-box h2, .payment-box h3 {
    color: #333;
    margin-top: 0;
}

/* Integration */
.story-container-inner {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

.story-container-inner #contactform {
    border: none !important;
    padding: 0 !important;
}