/* ── Custom Font ─────────────────────────────────────────────── */
@font-face {
    font-family: 'CircularXX';
    src: url('https://gabrieldesign.swiss/wp-content/uploads/CircularXXWeb-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Aggressive Reset für Pro Theme (Themeco X/Cornerstone) ─── */
#gdo-offerten-widget,
#gdo-offerten-widget * {
    box-sizing: border-box !important;
    font-family: 'CircularXX', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

#gdo-offerten-widget {
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #1a1a1a !important;
    background: transparent !important;
}

/* ── Fieldset / Legend Reset ─────────────────────────────────── */
#gdo-offerten-widget fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

#gdo-offerten-widget legend {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    float: none !important;
}

/* ── Form Layout ─────────────────────────────────────────────── */
#gdo-offerten-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gdo-field {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gdo-field--half {
    width: calc(50% - 8px) !important;
}

.gdo-spacer {
    /* placeholder for alignment */
}

@media (max-width: 480px) {
    .gdo-field--half {
        width: 100% !important;
    }
    .gdo-spacer {
        display: none !important;
    }
}

/* ── Labels ──────────────────────────────────────────────────── */
#gdo-offerten-widget label:not(.gdo-radio-label):not(.gdo-checkbox-label) {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 6px !important;
    cursor: default !important;
}

.gdo-req {
    color: #c00 !important;
    margin-left: 2px !important;
}

.gdo-optional {
    font-weight: 400 !important;
    color: #888 !important;
    font-size: 13px !important;
}

/* ── Inputs & Textarea ───────────────────────────────────────── */
#gdo-offerten-widget input[type="text"],
#gdo-offerten-widget input[type="email"],
#gdo-offerten-widget input[type="tel"],
#gdo-offerten-widget input[type="number"],
#gdo-offerten-widget textarea {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.15s !important;
    margin: 0 !important;
    resize: vertical !important;
}

#gdo-offerten-widget input[type="text"]:focus,
#gdo-offerten-widget input[type="email"]:focus,
#gdo-offerten-widget input[type="tel"]:focus,
#gdo-offerten-widget input[type="number"]:focus,
#gdo-offerten-widget textarea:focus {
    border-color: #333 !important;
    box-shadow: 0 0 0 3px rgba(51,51,51,0.08) !important;
}

/* ── Select ──────────────────────────────────────────────────── */
.gdo-select-wrap {
    position: relative !important;
    display: block !important;
}

#gdo-offerten-widget select {
    display: block !important;
    width: 100% !important;
    padding: 10px 38px 10px 12px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    margin: 0 !important;
}

#gdo-offerten-widget select:focus {
    border-color: #333 !important;
    box-shadow: 0 0 0 3px rgba(51,51,51,0.08) !important;
}

.gdo-arrow {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 8px !important;
    pointer-events: none !important;
    color: #888 !important;
}

/* ── Radio Buttons ───────────────────────────────────────────── */
.gdo-radio-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.gdo-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

#gdo-offerten-widget input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #ccc !important;
    border-radius: 50% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: border-color 0.15s !important;
}

#gdo-offerten-widget input[type="radio"]:checked {
    border-color: #333 !important;
    background: radial-gradient(circle, #333 40%, #fff 42%) !important;
}

/* ── Checkbox ────────────────────────────────────────────────── */
.gdo-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

#gdo-offerten-widget input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
}

#gdo-offerten-widget input[type="checkbox"]:checked {
    background: #333 !important;
    border-color: #333 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l4 4 8-8' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 70% !important;
}

.gdo-checkbox-label a {
    color: #333 !important;
    text-decoration: underline !important;
}

/* ── Submit Button ───────────────────────────────────────────── */
.gdo-field--submit {
    margin-top: 8px !important;
}

#gdo-submit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: #333 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#gdo-submit:hover {
    background: #111 !important;
}

#gdo-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.gdo-btn-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: gdo-spin 0.7s linear infinite !important;
}

@keyframes gdo-spin {
    to { transform: rotate(360deg); }
}

/* ── Fehlermeldungen ─────────────────────────────────────────── */
#gdo-errors {
    background: #fff3f3 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    color: #7d1a1a !important;
    font-size: 14px !important;
    width: 100% !important;
}

#gdo-errors ul {
    margin: 0 !important;
    padding: 0 0 0 18px !important;
}

#gdo-errors li {
    margin: 4px 0 !important;
}

/* ── Erfolg ──────────────────────────────────────────────────── */
#gdo-success {
    text-align: center !important;
    padding: 40px 20px !important;
}

.gdo-success-icon svg {
    width: 64px !important;
    height: 64px !important;
    display: block !important;
    margin: 0 auto 20px !important;
}

#gdo-success h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px !important;
}

#gdo-success p {
    font-size: 16px !important;
    color: #555 !important;
    margin: 0 !important;
}
