/* AS Farning Probestunde – Frontend */
.as-probestunde {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--farning-font-body, "Open Sans", system-ui, sans-serif);
    color: var(--farning-navy, #222D58);
}

/* Vertikaler Flow: nummerierte Timeline mit Verbindungslinien.
   Jeder Step hat zwei Views – aktiv (Form/Picker) und done (Chip).
   Default: keine .is-* Klasse = noch nicht erreicht = ausgeblendet. */
.as-flow {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-flow-row {
    display: none;
    grid-template-columns: 44px 1fr;
    column-gap: 24px;
    position: relative;
    padding-bottom: 32px;
}

.as-flow-row.is-current,
.as-flow-row.is-done {
    display: grid;
}

.as-flow-row:last-child {
    padding-bottom: 0;
}

/* Number-Bullet links */
.as-flow-num {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E6E8EC;
    color: var(--farning-text-muted, #777E90);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.as-flow-row.is-current .as-flow-num {
    background: var(--farning-teal, #005A84);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 90, 132, 0.15);
}

.as-flow-row.is-done .as-flow-num {
    background: var(--farning-teal, #005A84);
    color: #fff;
}

/* Body rechts neben dem Bullet */
.as-flow-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* View-Toggle: aktive Form vs. Done-Chip */
.as-step-active { display: block; }
.as-step-done { display: none; }
.as-flow-row.is-done .as-step-active { display: none; }
.as-flow-row.is-done .as-step-done { display: block; }

/* Vertikale Verbindungslinie: zeichnet von Bullet-Unterkante bis zum
   naechsten erreichten Step. Nutzt :has() um nur sichtbare Folge-Steps
   zu beruecksichtigen. */
.as-flow-row.is-done:has(+ .as-flow-row.is-current)::after,
.as-flow-row.is-done:has(+ .as-flow-row.is-done)::after,
.as-flow-row.is-current:has(+ .as-flow-row.is-current)::after,
.as-flow-row.is-current:has(+ .as-flow-row.is-done)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: #E6E8EC;
    z-index: 1;
}

/* Linie nach abgeschlossenem Step: voll teal, weil Pfad bestaetigt. */
.as-flow-row.is-done:has(+ .as-flow-row.is-current)::after,
.as-flow-row.is-done:has(+ .as-flow-row.is-done)::after {
    background: var(--farning-teal, #005A84);
}

/* Step-Header (Titel allein, Nummer kommt aus dem Flow-Bullet) */
.as-step-header {
    margin-bottom: 24px;
    padding-top: 8px;
}

/* Auswahl-Cards: zeigen frueher getroffene Entscheidungen oben im Schritt.
   Vertikal gestapelt, Standort-Foto im Landscape, "ändern" als Brand-Button. */
.as-context {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.as-context-chip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px 10px 10px;
    background: #fff;
    border: 1.5px solid #E6E8EC;
    border-radius: 20px;
    color: var(--farning-navy, #222D58);
    line-height: 1.25;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.as-context-chip:hover {
    border-color: rgba(0, 90, 132, 0.4);
    box-shadow: 0 4px 14px rgba(0, 90, 132, 0.08);
}

/* Standard: Landscape-Bild fuer Standort. */
.as-context-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: 12px;
    background-color: rgba(0, 90, 132, 0.08);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--farning-teal, #005A84);
}

/* Icon-Variante (Termin): quadratisch, FA-Icon zentriert. */
.as-context-thumb-icon {
    width: 90px;
    font-size: 32px;
}

.as-context-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.as-context-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--farning-text-muted, #777E90);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-context-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--farning-navy, #222D58);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* nur Layout-Slot — Look kommt aus .btn .btn-outline .btn-outline--teal .btn-sm */
.as-context-edit {
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 560px) {
    /* Chip horizontal kompakt: kleines Thumb links, Text mittig, ändern als Icon. */
    .as-context-chip {
        gap: 12px;
        padding: 8px 8px 8px 8px;
    }
    .as-context-thumb {
        width: 64px;
        height: 48px;
        border-radius: 8px;
    }
    .as-context-thumb-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .as-context-text {
        flex: 1;
        min-width: 0;
    }
    .as-context-value {
        font-size: 14px;
        white-space: normal;
    }
    /* Aendern-Button: nur Pfeil-Icon, runder Button */
    .as-context-edit {
        width: 36px;
        height: 36px;
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 50% !important;
    }
    .as-context-edit::before {
        font-size: 14px !important;
        margin: 0 !important;
    }

    /* Bullets kleiner, naeher links — Spalte schrumpft auf 24px */
    .as-flow-row {
        grid-template-columns: 24px 1fr;
        column-gap: 10px;
        padding-bottom: 18px;
    }
    .as-flow-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-left: -10px;
    }
    .as-flow-row.is-current .as-flow-num {
        box-shadow: 0 0 0 3px rgba(0, 90, 132, 0.15);
    }

    /* Bullet vertikal zum Content ausrichten:
       Done = Mitte des Chips, Current = oben mit der Headline */
    .as-flow-row.is-done .as-flow-num { align-self: center; }
    .as-flow-row.is-current .as-flow-num { align-self: start; margin-top: 4px; }

    /* Connector-Linien: bei zentrierten Done-Bullets startet die Linie
       unter dem Bullet (50% + Radius) statt am festen Top.
       Bullet ist 10px nach links versetzt → left: 1px (bullet center − 1) */
    .as-flow-row.is-done:has(+ .as-flow-row.is-current)::after,
    .as-flow-row.is-done:has(+ .as-flow-row.is-done)::after {
        left: 1px;
        top: calc(50% + 12px);
        bottom: 0;
    }

    /* Step-Header kompakter */
    .as-step-header { margin-bottom: 18px; padding-top: 4px; }
    .as-step-header h3 { font-size: 1.2em; }
}

.as-step-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    color: var(--farning-navy, #222D58);
    font-weight: 700;
}

/* Location buttons */
.as-locations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 600px) {
    .as-locations { grid-template-columns: repeat(2, 1fr); }
}

.as-location-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    border: 3px solid #E6E8EC;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 15px;
    overflow: hidden;
}

.as-location-btn:hover,
.as-location-btn:focus {
    border-color: var(--farning-teal, #005A84);
    background: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 90, 132, 0.15);
}

.as-location-icon {
    font-size: 24px;
}

.as-location-name {
    font-weight: 700;
    color: var(--farning-navy, #222D58);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

/* Foto-Variante: quadratische Karte, Name als Overlay unten */
.as-location-btn.has-image {
    aspect-ratio: 1 / 1;
    padding: 0;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0;
}

.as-location-btn.has-image .as-location-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.as-location-btn.has-image:hover .as-location-image,
.as-location-btn.has-image:focus .as-location-image {
    transform: scale(1.06);
}

.as-location-btn.has-image .as-location-name {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 32px 12px 14px;
    width: 100%;
    text-align: center;
    font-size: 17px;
    background: linear-gradient(to top, rgba(34, 45, 88, 0.85) 0%, rgba(34, 45, 88, 0.55) 60%, rgba(34, 45, 88, 0) 100%);
}

/* ===== Calendar ===== */
/* Wrapper-Reset: keine Pseudo-Elemente, keine Borders/Shadows, die irgendwo
   im Layout als "Strich" am Form-Rand sichtbar werden koennen.
   Greift jeden direkten Container im Schritt-Layout ab. */
.as-probestunde::before,
.as-probestunde::after,
.as-probestunde .as-step::before,
.as-probestunde .as-step::after,
.as-probestunde .as-step-header::before,
.as-probestunde .as-step-header::after,
.as-probestunde .as-step-header h3::before,
.as-probestunde .as-step-header h3::after,
.as-probestunde .as-step-number::before,
.as-probestunde .as-step-number::after,
.as-probestunde .as-locations::before,
.as-probestunde .as-locations::after,
.as-probestunde .as-form-row::before,
.as-probestunde .as-form-row::after,
.as-probestunde .as-form-group::before,
.as-probestunde .as-form-group::after,
.as-probestunde .as-children::before,
.as-probestunde .as-children::after,
.as-probestunde .as-children-list::before,
.as-probestunde .as-children-list::after,
.as-probestunde .as-calendar-wrap::before,
.as-probestunde .as-calendar-wrap::after,
.as-probestunde .as-calendar::before,
.as-probestunde .as-calendar::after,
.as-probestunde .as-calendar-header::before,
.as-probestunde .as-calendar-header::after,
.as-probestunde .as-cal-times-wrap::before,
.as-probestunde .as-cal-times-wrap::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: 0 !important;
}

.as-probestunde,
.as-probestunde .as-step,
.as-probestunde .as-step-header,
.as-probestunde .as-step-header h3,
.as-probestunde .as-form-row,
.as-probestunde .as-form-group,
.as-probestunde .as-children,
.as-probestunde .as-children-list,
.as-probestunde .as-calendar-wrap,
.as-probestunde .as-cal-times-wrap {
    border: 0 !important;
    border-left: 0 !important;
    border-image: none !important;
    box-shadow: none !important;
    outline: 0 !important;
    background-image: none !important;
}

.as-calendar {
    background: #fff;
    border: 3px solid #E6E8EC;
    border-radius: 16px;
    padding: 16px;
}

.as-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.as-cal-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--farning-navy, #222D58);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-cal-nav {
    width: 32px;
    height: 32px;
    border: 2px solid #E6E8EC;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--farning-navy, #222D58);
}

.as-cal-nav:hover:not(:disabled) {
    border-color: var(--farning-teal, #005A84);
    color: var(--farning-teal, #005A84);
    transform: scale(1.08);
}

.as-cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.as-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.as-cal-dayname {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--farning-text-muted, #777E90);
    padding: 2px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    font-size: 14px;
    color: #C7CAD2;
    user-select: none;
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    font-weight: 600;
    padding: 8px 0;
}

.as-cal-cell span {
    position: relative;
    z-index: 1;
}

.as-cal-cell.as-cal-available {
    color: var(--farning-navy, #222D58);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.as-cal-cell.as-cal-available:hover {
    background: rgba(0, 90, 132, 0.08);
    transform: scale(1.1);
}

.as-cal-cell.as-cal-selected {
    background: var(--farning-teal, #005A84);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 90, 132, 0.3);
}

.as-cal-cell.as-cal-selected .as-cal-dot {
    background: rgba(255, 255, 255, 0.8);
}

.as-cal-dot {
    position: static;
    transform: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--farning-cyan, #1AADC8);
}

/* Time slots below calendar */
.as-cal-times-wrap {
    margin-top: 20px;
}

.as-cal-times-header {
    font-weight: 700;
    font-size: 16px;
    color: var(--farning-navy, #222D58);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F5F5F5;
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-cal-times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-cal-hint {
    text-align: center;
    color: var(--farning-text-muted, #777E90);
    font-size: 14px;
    padding: 12px 0;
}

/* Slot buttons */
.as-slot-btn {
    padding: 14px 28px;
    border: 3px solid #E6E8EC;
    border-radius: 1000px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--farning-navy, #222D58);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-slot-btn:hover,
.as-slot-btn:focus {
    border-color: var(--farning-teal, #005A84);
    color: var(--farning-teal, #005A84);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 90, 132, 0.15);
}

.as-no-slots {
    padding: 20px;
    background: rgba(254, 164, 16, 0.1);
    border: 2px solid rgba(254, 164, 16, 0.25);
    border-radius: 16px;
    color: #92400e;
    text-align: center;
}

/* Loading */
.as-slots-loading {
    text-align: center;
    padding: 40px 20px;
}

.as-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E6E8EC;
    border-top-color: var(--farning-teal, #005A84);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: as-spin 0.7s linear infinite;
}

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

/* ===== Form ===== */
.as-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 500px) {
    .as-form-row {
        grid-template-columns: 1fr;
    }
    .as-calendar {
        padding: 14px;
    }
    .as-cal-cell {
        font-size: 13px;
    }
}

.as-form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
}

.as-form-group label {
    font-weight: 700;
    font-size: 12px;
    color: var(--farning-text-muted, #777E90);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#as-probestunde-app .as-form-group input,
#as-probestunde-app .as-form-group input[type="text"],
#as-probestunde-app .as-form-group input[type="email"],
#as-probestunde-app .as-form-group input[type="tel"],
#as-probestunde-app .as-form-group input[type="number"],
#as-probestunde-app .as-form-group textarea,
#as-probestunde-app .as-form-group select {
    padding: 14px 18px !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
    font-family: var(--farning-font-body, "Open Sans", system-ui, sans-serif) !important;
    color: var(--farning-navy, #222D58) !important;
    background: var(--farning-bg, #F5F5F5) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

#as-probestunde-app .as-form-group input[type="number"] {
    -moz-appearance: textfield !important;
}

#as-probestunde-app .as-form-group input[type="number"]::-webkit-inner-spin-button,
#as-probestunde-app .as-form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

#as-probestunde-app .as-form-group textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

#as-probestunde-app .as-form-group input:focus,
#as-probestunde-app .as-form-group input[type="text"]:focus,
#as-probestunde-app .as-form-group input[type="email"]:focus,
#as-probestunde-app .as-form-group input[type="tel"]:focus,
#as-probestunde-app .as-form-group input[type="number"]:focus,
#as-probestunde-app .as-form-group textarea:focus,
#as-probestunde-app .as-form-group select:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 132, 0.15) !important;
    border: none !important;
    outline: none !important;
}

#as-probestunde-app .as-form-group input::placeholder,
#as-probestunde-app .as-form-group textarea::placeholder {
    color: var(--farning-graphic, #C7CAD2) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.as-form-summary {
    background: rgba(0, 90, 132, 0.05);
    border: 2px solid rgba(0, 90, 132, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
    color: var(--farning-navy, #222D58);
}

.as-form-summary strong {
    color: var(--farning-teal, #005A84);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.as-back-btn {
    background: none;
    border: none;
    color: var(--farning-text-muted, #777E90);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    margin-top: 20px;
    transition: color 0.2s;
}

.as-back-btn:hover {
    color: var(--farning-navy, #222D58);
}

/* Look kommt aus .btn .btn-solid .btn-solid--teal .btn-arrow,
   nur den Disabled-State pflegen wir hier. */
.as-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.as-form-error {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(220, 38, 38, 0.06);
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Success ===== */
.as-success {
    text-align: center;
    padding: 40px 20px;
}

.as-success-icon {
    width: 68px;
    height: 68px;
    line-height: 68px;
    border-radius: 50%;
    background: rgba(68, 168, 128, 0.15);
    color: var(--farning-green, #44A880);
    font-size: 34px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.as-success h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: var(--farning-navy, #222D58);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

.as-success-details {
    font-size: 16px;
    font-weight: 600;
    color: var(--farning-navy, #222D58);
}

.as-contact-info {
    margin-top: 30px;
    padding: 24px;
    background: #F5F5F5;
    border-radius: 16px;
    font-size: 14px;
    color: var(--farning-navy, #222D58);
}

.as-contact-info strong {
    color: var(--farning-teal, #005A84);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
}

/* Kinder-Liste */
.as-children {
    margin-bottom: 6px;
}

.as-children-label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: var(--farning-text-muted, #777E90);
    font-family: var(--farning-font-headline, "National Park", system-ui, sans-serif);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.as-children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-child-row {
    display: grid;
    grid-template-columns: 1fr 130px 40px;
    gap: 8px;
    align-items: stretch;
}

#as-probestunde-app .as-child-row input {
    padding: 14px 18px !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
    font-family: var(--farning-font-body, "Open Sans", system-ui, sans-serif) !important;
    color: var(--farning-navy, #222D58) !important;
    background: var(--farning-bg, #F5F5F5) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

#as-probestunde-app .as-child-row input[type="number"] {
    -moz-appearance: textfield !important;
}

#as-probestunde-app .as-child-row input[type="number"]::-webkit-inner-spin-button,
#as-probestunde-app .as-child-row input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

#as-probestunde-app .as-child-row input:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 90, 132, 0.15) !important;
}

#as-probestunde-app .as-child-row input::placeholder {
    color: var(--farning-graphic, #C7CAD2) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.as-child-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--farning-text-muted, #777E90);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.as-child-remove[hidden] {
    display: none;
}

.as-child-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.as-child-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1.5px dashed rgba(0, 90, 132, 0.3);
    border-radius: 12px;
    background: transparent;
    color: var(--farning-teal, #005A84);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--farning-font-body, "Open Sans", system-ui, sans-serif);
}

.as-child-add:hover {
    background: rgba(0, 90, 132, 0.06);
    border-color: var(--farning-teal, #005A84);
}

.as-child-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--farning-teal, #005A84);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 480px) {
    .as-child-row {
        grid-template-columns: 1fr 100px 36px;
        gap: 6px;
    }
}
