/**
 * EquiForm — Frontend Form Styles
 *
 * Modern, clean design with CSS custom properties for full theme control.
 * Uses #esb-app ID selector for specificity over theme CSS.
 */

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* ─── Wrapper ─────────────────────────────────── */
#esb-app {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--esb-text);
    line-height: 1.6;
    box-sizing: border-box;
}

#esb-app *,
#esb-app *::before,
#esb-app *::after {
    box-sizing: border-box;
}

/* ─── Progress Bar (minimal) ─────────────────── */
#esb-app .esb-progress {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    position: relative;
    padding: 0;
}

#esb-app .esb-progress-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    flex: 1;
}

#esb-app .esb-progress-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

#esb-app .esb-step-active .esb-progress-circle {
    background: var(--esb-accent);
    color: #fff;
    border-color: var(--esb-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--esb-accent) 15%, transparent);
}

#esb-app .esb-step-done .esb-progress-circle {
    background: var(--esb-accent);
    color: #fff;
    border-color: var(--esb-accent);
}

#esb-app .esb-check {
    font-size: 14px;
    line-height: 1;
}

#esb-app .esb-progress-label {
    font-size: 11px;
    color: #b0b0b0;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

#esb-app .esb-step-active .esb-progress-label {
    color: var(--esb-accent);
    font-weight: 600;
}

#esb-app .esb-step-done .esb-progress-label {
    color: var(--esb-text);
}

/* Line spans between center of first and last circles only */
#esb-app .esb-progress-line {
    position: absolute;
    top: 16px;
    /* 5 steps → each flex item is 20%. Center of first = 10%, center of last = 90%.
       Clip to exact circle centers so line doesn't extend past the dots. */
    left: 10%;
    width: 80%;
    height: 2px;
    background: #eee;
    z-index: 1;
    border-radius: 1px;
    overflow: hidden;
}

#esb-app .esb-progress-fill {
    height: 100%;
    max-width: 100%;
    background: var(--esb-accent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

/* ─── Step Indicator Text ─────────────────────── */
#esb-app .esb-step-indicator {
    text-align: center;
    margin: -20px 0 28px;
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ─── Cards ───────────────────────────────────── */
#esb-app .esb-card {
    background: #fff;
    border-radius: var(--esb-radius);
    padding: 32px;
    margin-bottom: 16px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

#esb-app .esb-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--esb-primary);
    margin: 0 0 2px;
    letter-spacing: -0.02em;
}

#esb-app .esb-card-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0 0 28px;
    font-weight: 400;
}

/* ─── Form Grid ───────────────────────────────── */
#esb-app .esb-form-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 18px;
}

#esb-app .esb-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
}

#esb-app .esb-field-half {
    flex: 1 1 calc(50% - 9px) !important;
    min-width: 200px;
    max-width: 100%;
}

#esb-app .esb-field-full {
    flex: 1 1 100% !important;
    width: 100%;
}

#esb-app .esb-field label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    display: block;
}

#esb-app .esb-required {
    color: var(--esb-accent);
    font-weight: 400;
}

#esb-app .esb-field input[type="text"],
#esb-app .esb-field input[type="email"],
#esb-app .esb-field input[type="tel"],
#esb-app .esb-field input[type="date"],
#esb-app .esb-field select,
#esb-app .esb-field textarea {
    width: 100% !important;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: var(--esb-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    line-height: 1.5;
    margin: 0;
}

#esb-app .esb-field select {
    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 d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

#esb-app .esb-field input:focus,
#esb-app .esb-field select:focus,
#esb-app .esb-field textarea:focus {
    border-color: var(--esb-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--esb-accent) 10%, transparent);
}

#esb-app .esb-field input.esb-error,
#esb-app .esb-field select.esb-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

#esb-app .esb-error-msg {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

/* ─── Radio Cards (Prive/Zakelijk, Vandaag/Morgen) ── */
#esb-app .esb-radio-cards {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
}

#esb-app .esb-radio-card {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid #e0e0e0;
    border-radius: var(--esb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
    position: relative;
}

#esb-app .esb-radio-card input {
    display: none !important;
}

#esb-app .esb-radio-card span {
    font-weight: 600;
    font-size: 14px;
    color: var(--esb-text);
}

#esb-app .esb-radio-card small {
    font-size: 11px;
    color: #999;
}

#esb-app .esb-radio-card:hover {
    border-color: var(--esb-accent);
    background: color-mix(in srgb, var(--esb-accent) 3%, #fff);
}

#esb-app .esb-radio-active {
    border-color: var(--esb-accent) !important;
    background: color-mix(in srgb, var(--esb-accent) 5%, #fff) !important;
    box-shadow: 0 0 0 1px var(--esb-accent);
}

/* Check icon for active radio cards */
#esb-app .esb-radio-active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--esb-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

#esb-app .esb-radio-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#esb-app .esb-cutoff-msg {
    color: #ef4444;
    font-weight: 400;
}

/* ─── Radio Stack (vertical options) ──────────── */
#esb-app .esb-radio-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
}

#esb-app .esb-radio-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

#esb-app .esb-radio-option input {
    display: none !important;
}

#esb-app .esb-radio-option span {
    font-size: 14px;
    color: var(--esb-text);
}

#esb-app .esb-radio-option:hover {
    border-color: var(--esb-accent);
    background: color-mix(in srgb, var(--esb-accent) 3%, #fff);
}

#esb-app .esb-radio-option.esb-radio-active {
    border-color: var(--esb-accent);
    background: color-mix(in srgb, var(--esb-accent) 5%, #fff);
    box-shadow: 0 0 0 1px var(--esb-accent);
}

/* Radio dot indicator */
#esb-app .esb-radio-option.esb-radio-active::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--esb-accent);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

#esb-app .esb-radio-option:not(.esb-radio-active)::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #d5d5d5;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

#esb-app .esb-radio-option:hover:not(.esb-radio-active)::before {
    border-color: var(--esb-accent);
}

/* ─── Stallion Display ────────────────────────── */
#esb-app .esb-stallion-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 16px;
}

#esb-app .esb-stallion-photo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#esb-app .esb-stallion-name {
    padding: 14px 18px;
    background: var(--esb-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex: 1;
}

/* ─── Date Display (readonly) ────────────────── */
#esb-app .esb-date-display {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--esb-text);
    text-transform: capitalize;
}

#esb-app .esb-date-display svg {
    color: #999;
    flex-shrink: 0;
}

/* ─── Delivery Options (vertical cards) ──────── */
#esb-app .esb-delivery-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
}

#esb-app .esb-delivery-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--esb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

#esb-app .esb-delivery-card input {
    display: none !important;
}

#esb-app .esb-delivery-card-content {
    flex: 1;
}

#esb-app .esb-delivery-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 10px;
}

#esb-app .esb-delivery-card-header strong {
    font-size: 15px;
    color: var(--esb-text);
}

#esb-app .esb-delivery-card-header small {
    font-size: 13px;
    color: #999;
    text-transform: capitalize;
}

#esb-app .esb-delivery-card:hover:not(.esb-delivery-disabled) {
    border-color: var(--esb-accent);
    background: color-mix(in srgb, var(--esb-accent) 3%, #fff);
}

#esb-app .esb-delivery-card.esb-radio-active {
    border-color: var(--esb-accent);
    background: color-mix(in srgb, var(--esb-accent) 5%, #fff);
    box-shadow: 0 0 0 1px var(--esb-accent);
}

/* Radio dot for delivery cards */
#esb-app .esb-delivery-card.esb-radio-active::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--esb-accent);
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

#esb-app .esb-delivery-card:not(.esb-radio-active)::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid #d5d5d5;
    flex-shrink: 0;
    margin-top: 1px;
    transition: border-color 0.2s ease;
}

#esb-app .esb-delivery-card:hover:not(.esb-radio-active):not(.esb-delivery-disabled)::before {
    border-color: var(--esb-accent);
}

/* Disabled delivery card (past cutoff) */
#esb-app .esb-delivery-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #fafafa;
}

#esb-app .esb-delivery-disabled::before {
    border-color: #e0e0e0 !important;
}

/* Cutoff notice inside delivery card */
#esb-app .esb-delivery-cutoff-notice {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

#esb-app .esb-delivery-cutoff-notice p {
    font-size: 13px;
    color: #ef4444;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

/* WhatsApp inline link for cutoff notice */
#esb-app .esb-cutoff-whatsapp-link {
    color: #25D366;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

#esb-app .esb-cutoff-whatsapp-link:hover {
    color: #20bd5a;
}

#esb-app .esb-cutoff-whatsapp-link svg {
    vertical-align: -2px;
    margin-left: 2px;
}

/* ─── Shipping Info (fixed method) ───────────── */
#esb-app .esb-shipping-info {
    border: 1px solid #e0e0e0;
    border-radius: var(--esb-radius);
    overflow: hidden;
}

#esb-app .esb-shipping-method {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--esb-accent) 4%, #fff);
    border-bottom: 1px solid #e0e0e0;
}

#esb-app .esb-shipping-method svg {
    color: var(--esb-accent);
    flex-shrink: 0;
}

#esb-app .esb-shipping-method div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
}

#esb-app .esb-shipping-method strong {
    font-size: 14px;
    color: var(--esb-text);
}

#esb-app .esb-shipping-method span {
    font-size: 13px;
    color: #888;
}

#esb-app .esb-shipping-note {
    padding: 12px 18px;
    font-size: 13px;
    color: #888;
    margin: 0;
    background: #fafafa;
    line-height: 1.5;
}

#esb-app .esb-shipping-note a {
    color: var(--esb-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Checkbox Label ──────────────────────────── */
#esb-app .esb-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

#esb-app .esb-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--esb-accent);
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    flex-shrink: 0;
    display: inline-block !important;
}

#esb-app .esb-checkbox-label a {
    color: var(--esb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Alerts ──────────────────────────────────── */
#esb-app .esb-alert {
    padding: 16px 20px;
    border-radius: var(--esb-radius);
    margin-bottom: 16px;
}

#esb-app .esb-alert-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    color: #92400e;
}

#esb-app .esb-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

#esb-app .esb-alert strong {
    display: block;
    margin-bottom: 4px;
}

#esb-app .esb-alert p {
    margin: 4px 0;
    font-size: 14px;
}

#esb-app .esb-contact-options {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    margin-top: 10px;
}

#esb-app .esb-contact-link {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Terms ───────────────────────────────────── */
#esb-app .esb-terms {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* ─── Overview Header (Holstud branding) ─────── */
#esb-app .esb-overview-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 8px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

#esb-app .esb-overview-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

#esb-app .esb-overview-tagline {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ─── Summary ─────────────────────────────────── */
#esb-app .esb-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
}

#esb-app .esb-summary-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

#esb-app .esb-summary-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#esb-app .esb-summary-edit {
    font-size: 12px;
    color: var(--esb-accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

#esb-app .esb-summary-edit:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#esb-app .esb-summary-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 700;
}

#esb-app .esb-summary-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

#esb-app .esb-summary-row span:first-child {
    color: #555;
    font-weight: 500;
}

#esb-app .esb-summary-row span:last-child,
#esb-app .esb-summary-row strong {
    color: var(--esb-text);
    font-weight: 500;
    text-align: right;
}

#esb-app .esb-summary-highlight {
    background: color-mix(in srgb, var(--esb-accent) 4%, #fff);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--esb-accent) 15%, transparent);
}

#esb-app .esb-summary-highlight h3 {
    color: var(--esb-accent) !important;
    border-bottom-color: color-mix(in srgb, var(--esb-accent) 15%, transparent) !important;
}

#esb-app .esb-summary-address {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    color: var(--esb-text);
}

/* ─── Navigation Buttons ──────────────────────── */
#esb-app .esb-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
}

#esb-app .esb-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
}

#esb-app .esb-btn-primary {
    background: var(--esb-button);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--esb-button) 30%, transparent);
}

#esb-app .esb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--esb-button) 35%, transparent);
}

#esb-app .esb-btn-secondary {
    background: transparent;
    color: #888;
    border: none;
    padding: 12px 16px;
}

#esb-app .esb-btn-secondary:hover {
    color: var(--esb-text);
}

#esb-app .esb-btn-submit {
    background: var(--esb-accent);
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--esb-accent) 35%, transparent);
}

#esb-app .esb-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--esb-accent) 40%, transparent);
}

#esb-app .esb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

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

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

/* ─── Success Screen ──────────────────────────── */
#esb-app .esb-success-card {
    text-align: center;
    padding: 48px 32px;
    background: #fff;
}

#esb-app .esb-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--esb-accent), color-mix(in srgb, var(--esb-accent) 80%, #000));
    color: #fff;
    font-size: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--esb-accent) 30%, transparent);
}

#esb-app .esb-success-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
}

#esb-app .esb-success-card h2 {
    font-size: 24px;
    color: var(--esb-primary);
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#esb-app .esb-success-card p {
    color: #777;
    font-size: 15px;
    margin: 0 0 8px;
}

/* ─── Success CTA Buttons ────────────────────── */
#esb-app .esb-success-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

#esb-app .esb-btn-call,
#esb-app .esb-btn-whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    line-height: 1.5;
}

#esb-app .esb-btn-call {
    background: var(--esb-accent);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--esb-accent) 30%, transparent);
}

#esb-app .esb-btn-call:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--esb-accent) 35%, transparent);
    color: #fff;
    text-decoration: none;
}

#esb-app .esb-btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

#esb-app .esb-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    color: #fff;
    text-decoration: none;
}

#esb-app .esb-btn-call svg,
#esb-app .esb-btn-whatsapp svg {
    flex-shrink: 0;
}

/* ─── Powered By Footer ──────────────────────── */
#esb-app .esb-powered-by {
    text-align: center;
    padding: 20px 0 0;
    margin-top: 12px;
}

#esb-app .esb-powered-by span {
    font-size: 10px;
    color: #ccc;
    letter-spacing: 0.04em;
}

#esb-app .esb-powered-by strong {
    font-weight: 600;
    color: #bbb;
}

/* ─── Transitions ─────────────────────────────── */
#esb-app .esb-step-panel {
    animation: esb-fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes esb-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Popup Button & Modal ───────────────────── */

/* Body scroll lock when popup is open */
body.esb-popup-active {
    overflow: hidden !important;
}

/* Floating trigger button — bottom center */
/* No !important on display — Alpine x-show needs to override it */
.esb-popup-trigger {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--esb-button, #2c5530);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.5;
}

.esb-popup-trigger:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.esb-popup-trigger svg {
    flex-shrink: 0;
}

/* Trigger transitions */
.esb-popup-trigger-enter {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.esb-popup-trigger-enter-start {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}
.esb-popup-trigger-enter-end {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal overlay — no !important on display, Alpine x-show controls visibility */
.esb-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Overlay fade */
.esb-popup-fade-enter {
    transition: opacity 0.3s ease;
}
.esb-popup-fade-start {
    opacity: 0;
}
.esb-popup-fade-end {
    opacity: 1;
}

/* Modal container — no !important on display, Alpine x-show controls visibility */
.esb-popup-modal {
    position: relative;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal slide-up */
.esb-popup-slide-enter {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.esb-popup-slide-start {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}
.esb-popup-slide-end {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Close button */
.esb-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.esb-popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}

/* Scrollable body */
.esb-popup-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 8px 0;
    background: #ffffff;
}

/* Adjust form inside popup — remove top padding, smaller max-width */
.esb-popup-body #esb-app {
    padding: 8px 24px 24px;
    max-width: 100%;
    background: #ffffff;
}

/* ─── Mobile Responsive ──────────────────────── */
@media (max-width: 600px) {
    #esb-app {
        padding: 12px 0;
    }

    #esb-app .esb-card {
        padding: 24px 18px;
        border-radius: calc(var(--esb-radius) * 0.75);
    }

    #esb-app .esb-field-half {
        flex: 1 1 100% !important;
    }

    #esb-app .esb-radio-cards {
        flex-direction: column !important;
    }

    #esb-app .esb-progress-label {
        font-size: 9px;
    }

    #esb-app .esb-progress-circle {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 11px;
    }

    #esb-app .esb-nav {
        flex-direction: column-reverse !important;
        gap: 10px;
    }

    #esb-app .esb-nav .esb-btn {
        width: 100% !important;
        justify-content: center;
    }

    #esb-app .esb-summary-row {
        flex-direction: column !important;
        gap: 2px;
    }

    #esb-app .esb-summary-row span:last-child,
    #esb-app .esb-summary-row strong {
        text-align: left;
    }

    #esb-app .esb-contact-options {
        flex-direction: column !important;
    }

    #esb-app .esb-btn-submit {
        padding: 14px 28px;
    }

    #esb-app .esb-success-buttons {
        flex-direction: column !important;
    }

    #esb-app .esb-btn-call,
    #esb-app .esb-btn-whatsapp {
        justify-content: center;
        width: 100%;
    }

    #esb-app .esb-stallion-header {
        flex-direction: column !important;
        text-align: center;
    }

    #esb-app .esb-stallion-photo {
        margin: 0 auto;
    }

    #esb-app .esb-delivery-card-header {
        flex-direction: column !important;
        gap: 2px;
    }

    /* Popup mobile adjustments */
    .esb-popup-trigger {
        bottom: 16px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .esb-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .esb-popup-modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }

    .esb-popup-body #esb-app {
        padding: 8px 16px 24px;
    }
}
