/* Ultima Groupe – Kreditantrag v3.1
   An das ursprüngliche Formular angelehnt und gegen Theme-CSS isoliert. */

.ugx-wrapper,
.ugx-wrapper * { box-sizing: border-box; }

.ugx-wrapper {
    --ugx-primary: #0097B2;
    --ugx-dark: #007a91;
    --ugx-light: #e0f5f9;
    --ugx-lightest: #f0fbfd;
    --ugx-text: #1a2733;
    --ugx-muted: #607d8b;
    --ugx-border: #b8dde6;
    --ugx-white: #ffffff;
    --ugx-bg: #f5fbfc;
    --ugx-success: #16a34a;
    --ugx-error: #dc2626;
    --ugx-radius: 10px;
    --ugx-shadow: 0 2px 16px rgba(0,151,178,.09);
    font-family: "Sora", "Segoe UI", Arial, sans-serif;
    color: var(--ugx-text);
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.ugx-wrapper p,
.ugx-wrapper h2,
.ugx-wrapper h3 { margin-top: 0; }

.ugx-header {
    text-align: center;
    padding: 28px 16px 24px;
}
.ugx-header::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--ugx-primary);
    border-radius: 2px;
    margin: 14px auto 0;
}
.ugx-header-icon {
    width: 56px;
    height: 56px;
    background: var(--ugx-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,151,178,.28);
}
.ugx-header-icon svg { width: 28px; height: 28px; display: block; }
.ugx-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    color: var(--ugx-primary);
    margin: 0 0 8px !important;
    font-weight: 600;
    line-height: 1.2;
}
.ugx-subtitle {
    font-size: 14px;
    color: var(--ugx-muted);
    margin: 0 auto !important;
    max-width: 440px;
    line-height: 1.65;
}


/* Kurzer Einleitungstext direkt oberhalb des Antragsformulars. */
.ugx-wrapper .ugx-introduction {
    max-width: 690px;
    margin: 0 auto 24px !important;
    padding: 0 14px;
    text-align: center;
    color: var(--ugx-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}

.ugx-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.ugx-section {
    background: var(--ugx-white);
    border: 1.5px solid var(--ugx-border);
    border-radius: var(--ugx-radius);
    padding: 24px 24px 20px;
    box-shadow: var(--ugx-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow .2s,border-color .2s;
}
.ugx-section:focus-within { border-color: var(--ugx-primary); box-shadow: 0 4px 22px rgba(0,151,178,.13); }
.ugx-section-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ugx-light); }
.ugx-num {
    width: 33px;
    height: 33px;
    min-width: 33px;
    background: var(--ugx-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ugx-section-head h3 { font-family: Georgia, "Times New Roman", serif; font-size: 18px; color: var(--ugx-primary); margin: 0 !important; font-weight: 600; }

.ugx-grid { display: grid; gap: 14px; width: 100%; }
.ugx-g2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ugx-g3 { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.ugx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.ugx-field > label { font-size: 13px; font-weight: 600; color: var(--ugx-text); line-height: 1.4; margin: 0; }
.ugx-req { color: var(--ugx-primary); }

/* Stronger specificity intentionally protects the form from OceanWP/theme field rules. */
.ugx-wrapper .ugx-form input[type="text"],
.ugx-wrapper .ugx-form input[type="email"],
.ugx-wrapper .ugx-form input[type="tel"],
.ugx-wrapper .ugx-form select,
.ugx-wrapper .ugx-form textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    min-height: 46px;
    padding: 11px 14px !important;
    margin: 0 !important;
    border: 1.5px solid var(--ugx-border) !important;
    border-radius: 8px !important;
    font-family: "Sora", "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.45 !important;
    color: var(--ugx-text) !important;
    background-color: var(--ugx-bg) !important;
    outline: none !important;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s,box-shadow .2s,background .2s;
}
.ugx-wrapper .ugx-form input:focus,
.ugx-wrapper .ugx-form select:focus,
.ugx-wrapper .ugx-form textarea:focus {
    border-color: var(--ugx-primary) !important;
    background-color: var(--ugx-white) !important;
    box-shadow: 0 0 0 3px rgba(0,151,178,.11) !important;
}
.ugx-wrapper .ugx-form input.ugx-invalid,
.ugx-wrapper .ugx-form select.ugx-invalid,
.ugx-wrapper .ugx-form textarea.ugx-invalid {
    border-color: var(--ugx-error) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.09) !important;
}
.ugx-wrapper .ugx-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230097B2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer;
}
.ugx-wrapper .ugx-form textarea { resize: vertical; min-height: 96px; }

.ugx-calculation {
    background: linear-gradient(135deg,var(--ugx-primary) 0%,var(--ugx-dark) 100%);
    border-radius: var(--ugx-radius);
    padding: 20px 22px;
    color: #fff;
    animation: ugx-in .3s ease;
}
@keyframes ugx-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.ugx-calculation-grid { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.ugx-calculation-main { padding: 0 22px 0 0; flex: 1.3; min-width: 190px; }
.ugx-calculation-item { padding: 0 20px; flex: 1; min-width: 150px; }
.ugx-calculation-separator { width: 1px; height: 42px; background: rgba(255,255,255,.22); flex-shrink: 0; }
.ugx-calculation-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; opacity: .72; margin-bottom: 4px; }
.ugx-calculation-big { display: block; font-family: Georgia,"Times New Roman",serif; font-size: 26px; font-weight: 600; color: #ffe87a; letter-spacing: -.5px; }
.ugx-calculation-value { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.ugx-cost { opacity: .9; }
.ugx-calculation-note { margin: 10px 0 0 !important; font-size: 10px; opacity: .62; text-align: right; color: #fff; }

.ugx-message { padding: 13px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.55; animation: ugx-in .3s ease; }
.ugx-message.ugx-success { background:#f0fdf4; border:1.5px solid #bbf7d0; color:var(--ugx-success); }
.ugx-message.ugx-error { background:#fef2f2; border:1.5px solid #fecaca; color:var(--ugx-error); }

.ugx-submit-wrap { text-align: center; }
.ugx-wrapper .ugx-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ugx-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 44px !important;
    min-height: 48px;
    font-family: "Sora","Segoe UI",Arial,sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 18px rgba(0,151,178,.32) !important;
    transition: background .2s,transform .15s,box-shadow .2s;
}
.ugx-wrapper .ugx-submit-btn:hover:not(:disabled) { background: var(--ugx-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,151,178,.38) !important; }
.ugx-wrapper .ugx-submit-btn:disabled { opacity:.65; cursor:not-allowed; }
.ugx-btn-text,.ugx-btn-loading { display:inline-flex; align-items:center; gap:8px; }
.ugx-spinner { width:15px; height:15px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:ugx-spin .7s linear infinite; }
@keyframes ugx-spin { to { transform:rotate(360deg); } }
.ugx-submit-note { margin:10px 0 0 !important; font-size:12px; color:var(--ugx-muted); }

.ugx-bottom-note { background:var(--ugx-lightest); border:1px solid var(--ugx-light); border-radius:8px; padding:16px 20px; font-size:13px; color:var(--ugx-muted); line-height:1.7; display:flex; flex-direction:column; gap:5px; }
.ugx-bottom-note p { margin:0 !important; }
.ugx-bottom-note a { color:var(--ugx-primary); text-decoration:none; font-weight:500; }
.ugx-bottom-note a:hover { text-decoration:underline; }
.ugx-security-note { display:flex; align-items:center; justify-content:center; gap:6px; font-size:11px; color:var(--ugx-muted); }
.ugx-security-note svg { stroke:var(--ugx-muted); flex-shrink:0; }
.ugx-hp { position:absolute !important; left:-99999px !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }

.ugx-success-screen { text-align:center; padding: 42px 0 16px; }
.ugx-success-check { width:88px; height:88px; border-radius:50%; background:#dff6fa; color:var(--ugx-primary); display:flex; align-items:center; justify-content:center; margin:0 auto 26px; }
.ugx-success-check svg { width:42px; height:42px; display:block; }
.ugx-success-screen h2 { font-family:Georgia,"Times New Roman",serif; color:var(--ugx-primary); font-size:30px; margin:0 0 16px !important; }
.ugx-success-lead { color:var(--ugx-muted); font-size:16px; line-height:1.75; margin:0 auto 34px !important; max-width:620px; }
.ugx-success-box { background:var(--ugx-lightest); border:1px solid var(--ugx-border); border-radius:12px; padding:24px 28px; text-align:left; max-width:740px; margin:0 auto 34px; }
.ugx-success-row { display:grid; grid-template-columns:44px 1fr; gap:18px; align-items:start; padding:10px 0; }
.ugx-success-icon { width:44px; height:44px; border-radius:9px; background:#ddf5f9; color:var(--ugx-primary); display:flex; align-items:center; justify-content:center; }
.ugx-success-icon svg { width:22px; height:22px; }
.ugx-success-row strong { display:block; color:var(--ugx-text); font-size:14px; margin-bottom:5px; }
.ugx-success-row span:not(.ugx-success-icon) { display:block; color:var(--ugx-muted); font-size:14px; line-height:1.6; }
.ugx-home-btn { display:inline-flex; align-items:center; gap:9px; background:var(--ugx-primary); color:#fff !important; text-decoration:none !important; border-radius:10px; padding:13px 25px; font-weight:600; box-shadow:0 4px 16px rgba(0,151,178,.24); }
.ugx-home-btn:hover { background:var(--ugx-dark); color:#fff !important; }
.ugx-home-btn svg { width:18px; height:18px; display:block; }

@media (max-width: 640px) {
    .ugx-wrapper { padding-left:10px; padding-right:10px; }
    .ugx-title { font-size:22px; }
    .ugx-header { padding:20px 8px 18px; }
    .ugx-wrapper .ugx-introduction { font-size:14px; line-height:1.7; margin-bottom:20px !important; padding:0 8px; }
    .ugx-section { padding:16px 14px; }
    .ugx-g2,.ugx-g3 { grid-template-columns:1fr; }
    .ugx-calculation-grid { flex-direction:column; align-items:flex-start; gap:12px; }
    .ugx-calculation-main,.ugx-calculation-item { padding:0; width:100%; }
    .ugx-calculation-separator { display:none; }
    .ugx-calculation-note { text-align:left; }
    .ugx-wrapper .ugx-submit-btn { width:100%; }
    .ugx-success-screen h2 { font-size:25px; }
    .ugx-success-box { padding:18px; }
}

/* Feldbezogene Fehlermeldung für den Mindestkreditbetrag. */
.ugx-field-error {
    display: block;
    margin-top: 2px;
    color: var(--ugx-error);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.ugx-wrapper .ugx-form input::placeholder,
.ugx-wrapper .ugx-form textarea::placeholder {
    color: #8aa2ad;
    opacity: 1;
}
