/* =============================
   🌙 JOLEA ORDER FORM DARK MODE
============================= */

/* FORM CONTAINER */
.jolea-form {
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

/* GRID */
.jolea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten für größere Screens */
    gap: 20px;
}

/* CARDS */
.jolea-form .jolea-card,
.jolea-form .jolea-summary-card {
    background: #1e293b;
    padding: 25px; /* Standard-Padding */
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #e2e8f0;
    position: relative;
    min-height: auto; /* Dynamische Höhe */
    overflow: hidden; /* Grid bleibt intakt */
}

/* Hintergrund-Effekte */
.jolea-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,0.25), transparent),
        radial-gradient(circle at 80% 80%, rgba(168,85,247,0.2), transparent);
    opacity: 0.6;
}

/* HEADINGS */
.jolea-card h3,
.jolea-summary-card h3 {
    margin-bottom: 15px;
    color: #f1f5f9;
}

/* INPUTS, TEXTAREAS & SELECTS */
.jolea-card input,
.jolea-card select,
.jolea-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
}

/* PLACEHOLDER */
.jolea-card input::placeholder,
.jolea-card textarea::placeholder {
    color: #94a3b8;
}

/* FOCUS-EFFEKT */
.jolea-card input:focus,
.jolea-card select:focus,
.jolea-card textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
    outline: none;
}

/* CHECKBOXES & RADIOS */
.jolea-card input[type="checkbox"],
.jolea-card input[type="radio"] {
    accent-color: #3b82f6;
}

/* CUSTOM DROPDOWN PFEIL */
.jolea-card select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2394a3b8' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* SUMMARY */
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #cbd5f5;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    color: #ffffff;
}

.discount {
    color: #22c55e;
    font-weight: bold;
}

/* DIVIDER */
.jolea-summary-card hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 15px 0;
}

/* BUTTONS */
.jolea-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    font-weight: bold;
}

.jolea-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

/* SUCCESS MESSAGE */
.jolea-success {
    background: #16a34a;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* RESPONSIVE */
@media(max-width: 900px){
    .jolea-grid {
        grid-template-columns: 1fr; /* Single column auf kleinen Screens */
    }
}

/* =============================
   🔥 FORCE FIX ORDER FORM HEIGHT
============================= */

/* Überschreibt globales Theme */
.jolea-form .jolea-card {
    padding: 40px 25px !important; /* gewinnt gegen global CSS */
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Falls WordPress Klassen reinmischt */
.jolea-form .card,
.jolea-form .wp-block-group {
    padding: 40px 25px !important;
}

/* WICHTIG: Grid soll sich strecken */
.jolea-grid {
    align-items: start !important;
}

/* Verhindert abgeschnittene Inhalte */
.jolea-form {
    overflow: visible !important;
}

/* Inputs etwas größer für bessere Höhe */
.jolea-form input,
.jolea-form select,
.jolea-form textarea {
    padding: 14px !important;
}
/* =============================
   🔥 DOMAIN UI CLEANUP
============================= */

/* ➕ Add Domain Button (clean) */
#add-domain {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #94a3b8;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    margin-top: 10px;
    width: auto;
}

#add-domain:hover {
    background: rgba(59,130,246,0.1);
    color: #fff;
    border-color: #3b82f6;
}

/* ❌ Remove Button */
.remove-domain {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.remove-domain:hover {
    color: #f87171;
}

/* Domain Row Layout */
.domain-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

/* Input kleiner machen für Platz */
.domain-row input {
    flex: 2;
}

.domain-row select {
    flex: 1;
}
.domain-status {
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.domain-status.available {
    color: #22c55e;
}

.domain-status.taken {
    color: #ef4444;
}

.domain-status.loading {
    color: #facc15;
}
.domain-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.domain-status {
    font-size: 12px;
    margin-top: 5px;
}