/* ===========================================
   Contact Page Styles
   =========================================== */

/* Header kleiner für Kontaktseite */
.page-header.contact-header {
    height: 135px;
}

/* Kontakt-Info-Leiste - direkt unter Header */
.contact-info-bar {
    background: #F1F1F1;
    width: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid #CECECE;
}

.contact-info-container {
    max-width: var(--max-content-width);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.contact-info-item {
    flex: 1;
    font-size: 20px;
    color: black;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.contact-info-item:last-child {
    align-items: flex-start;
    padding-left: 50px;
}

.contact-info-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: #CECECE;
}

.contact-info-item:last-child::after {
    display: none;
}

.contact-info-label {
    font-weight: 700;
}

.contact-info-value {
    font-weight: 400;
}

.teamviewer-item {
    flex-direction: row;
}

.teamviewer-link {
    display: block;
}

.teamviewer-icon {
    height: 50px;
    width: auto;
}

/* Kontaktformular Container */
.contact-form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-form-title {
    font-size: 24pt;
    font-weight: 700;
    color: black;
    margin-bottom: 30px;
}

/* Alert Messages */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}

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

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

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: #6E6E6E;
    margin-bottom: 8px;
}

.form-label .required {
    color: #d9534f;
    margin-left: 2px;
}

/* Input Styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: black;
    background: #F1F1F1;
    border: 1px solid #CECECE;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   Bootstrap-style Input Groups - IMMER Border
   ============================================= */
.input-group {
    display: flex;
    align-items: stretch;
    background: #F1F1F1;
    border: 1px solid #CECECE;
    border-radius: 4px;
}

.input-group:focus-within {
    border-color: var(--primary-green);
}

/* Alle Inputs/Texte in der Group ohne eigene Borders */
.input-group .form-control,
.input-group input[type="text"] {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
}

#id_phone_prefix {
    border-right: 1px solid #CECECE !important;
}

#id_ticket_number_prefix {
    border-right: 1px solid #CECECE !important;
    padding: 12px;
}

/* Telefon: Vorwahl-Feld - MAXIMAL 60px mit Trennlinie */
.input-group .phone-prefix-input {
    width: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    flex: 0 0 60px !important;
    text-align: center;
    padding: 12px 5px !important;
    border: none !important;
    border-right: 1px solid #CECECE !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Telefon: Nummer-Feld */
.input-group .phone-number-input {
    flex: 1 1 auto !important;
}

/* Select Dropdown */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-color: #F1F1F1;
    padding-right: 40px;
    cursor: pointer;
}

/* Radio Buttons */
.form-group-radio {
    margin-bottom: 25px;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: black;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #CECECE;
    border-radius: 50%;
    background: #F1F1F1;
    position: relative;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--primary-green);
    background: #F1F1F1;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-green);
}

/* reCAPTCHA */
.recaptcha-group {
    margin: 30px 0;
}

/* Submit Button */
.form-submit {
    text-align: right;
    margin-top: 30px;
}

.submit-btn {
    padding: 12px 30px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    background: #F1F1F1;
    border: 1px solid #CECECE;
    border-radius: 4px;
    cursor: not-allowed;
    transition: all 0.2s;
}

.submit-btn.enabled {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    cursor: pointer;
}

.submit-btn.enabled:hover {
    background: #0E7C62;
    border-color: #0E7C62;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info-container {
        flex-wrap: wrap;
    }
    
    .contact-info-item {
        flex: 1 1 50%;
        padding: 15px 20px;
    }
    
    .contact-info-item::after {
        display: none;
    }
    
    .contact-info-item:last-child {
        align-items: center;
        padding-left: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}