/**
 * Palmer Form Widget Styles
 * File: assets/css/palmer-form-widget.css
 */

/* ── STEP VISIBILITY ─────────────────────────────────────────── */

.palmer-form__step--hidden {
    display: none !important;
}

/* ── SIDEBAR LAYOUT ─────────────────────────────────────────── */

.palmer-form-section--has-sidebar {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.palmer-form-section--has-sidebar .palmer-form-inner {
    flex: 1 !important;
    min-width: 0 !important;
}

/* ── SIDEBAR NAV ─────────────────────────────────────────────── */

.palmer-form-sidebar {
    width: 190px !important;
    flex-shrink: 0 !important;
    margin-right: 48px !important;
    padding-top: 6px !important;
}

.palmer-sidebar-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    position: relative !important;
}

.palmer-sidebar-item__track {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.palmer-sidebar-item__circle {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 2px solid #d0d0d0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: border-color 0.25s, background 0.25s !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

.palmer-sidebar-item__dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: background 0.25s !important;
    display: block !important;
}

.palmer-sidebar-item__line {
    width: 2px !important;
    height: 44px !important;
    background: #d0d0d0 !important;
    flex-shrink: 0 !important;
    transition: background 0.25s !important;
}

.palmer-sidebar-item__label {
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: #999999 !important;
    line-height: 1.2 !important;
    padding-top: 4px !important;
    transition: color 0.25s !important;
    display: block !important;
}

/* Active step */
.palmer-sidebar-item--active .palmer-sidebar-item__circle {
    border-color: #87D2D2 !important;
    background: #87D2D2 !important;
}

.palmer-sidebar-item--active .palmer-sidebar-item__dot {
    background: #ffffff !important;
}

.palmer-sidebar-item--active .palmer-sidebar-item__label {
    color: #222222 !important;
    font-weight: 500 !important;
}

/* Done steps */
.palmer-sidebar-item--done .palmer-sidebar-item__circle {
    border-color: #87D2D2 !important;
    background: #ffffff !important;
}

.palmer-sidebar-item--done .palmer-sidebar-item__dot {
    background: #87D2D2 !important;
}

.palmer-sidebar-item--done .palmer-sidebar-item__line {
    background: #87D2D2 !important;
}

.palmer-sidebar-item--done .palmer-sidebar-item__label {
    color: #555555 !important;
}

/* Hide inline progress circles when sidebar is active */
.palmer-form-section--has-sidebar .desktop-progress-bar,
.palmer-form-section--has-sidebar .mobile-step-progress,
.palmer-form-section--has-sidebar .step-progress {
    display: none !important;
}

/* ── NEXT BUTTON — sidebar mode teal link ───────────────────── */

.palmer-form-section--has-sidebar .palmer-form__nav {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 50px 0 20px !important;
    gap: 20px !important;
}

.palmer-form-section--has-sidebar .palmer-next-link {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    font-family: Jost, sans-serif !important;
    color: #87D2D2 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.palmer-form-section--has-sidebar .palmer-next-link:hover {
    background: none !important;
    border: none !important;
    opacity: 0.75 !important;
}

.palmer-next-arrow {
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ── FORM BOX ───────────────────────────────────────────────── */

.palmer-form__step {
    background: rgba(255, 255, 255, 0.40);
    border: none;
    margin: 0 0 50px 0;
    padding: 40px;
}

/* ── STEP TITLE ─────────────────────────────────────────────── */

.palmer-form__step h4 {
    background: transparent;
    position: relative;
    top: 0;
    color: #000;
    font-family: "Baskervvile", serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border: none;
    text-transform: capitalize;
    padding: 38px 0;
    margin: 0;
}

.palmer-form__step-desc {
    color: rgba(0, 0, 0, 0.60);
    font-family: Jost, sans-serif;
    font-size: 18px;
    margin: 0 0 20px;
}

/* ── FIELD WRAPPER ──────────────────────────────────────────── */

.palmer-field-wrap {
    margin-bottom: 35px;
}

.palmer-field-wrap--conditional-hidden {
    display: none !important;
}

/* ── LABELS ─────────────────────────────────────────────────── */

.palmer-form__step label,
.palmer-field-label {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.60);
    margin-bottom: 6px;
}

.palmer-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.palmer-label-row label,
.palmer-label-row .palmer-field-label {
    margin-bottom: 0;
}

.palmer-popup-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.40);
    transition: color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.palmer-popup-eye:hover { color: #87D2D2; }
.palmer-popup-eye svg { width: 20px; height: 20px; display: block; }

/* ── FIELD POPUP OVERLAY ────────────────────────────────────── */

.palmer-field-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.palmer-field-popup-overlay.is-open { display: flex; }

.palmer-field-popup-box {
    background: #fff;
    max-width: 560px;
    width: 90%;
    padding: 32px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.palmer-field-popup-box img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.palmer-field-popup-box p {
    font-family: Jost, sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.70);
    margin: 0;
    line-height: 1.6;
}

.palmer-field-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0,0,0,0.50);
    padding: 0;
    font-family: Jost, sans-serif;
}

.palmer-field-popup-close:hover { color: #000; }

/* ── ROW TABLE: TH POPUP BUTTON ─────────────────────────────── */

.palmer-row-table__th-inner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.palmer-row-table__th-popup {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: inherit !important;
    opacity: 0.55 !important;
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
    transition: opacity 0.15s !important;
}

.palmer-row-table__th-popup:hover { opacity: 1 !important; }

.palmer-row-table__th-popup svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
}

/* ── ROW TABLE: LOCKED FIELD STATE ──────────────────────────── */

/* Align all cells to top so a hint in one td doesn't shift others */
.palmer-row-table__row td {
    vertical-align: top !important;
}

/* Required column asterisk in header */
.palmer-row-table__th-req {
    color: #e53e3e;
    margin-left: 2px;
}

/* Required cell highlight (unfilled) */
.palmer-row-table__required.palmer-field-error {
    border-color: #e53e3e !important;
    outline: 2px solid #e53e3e !important;
    outline-offset: -1px !important;
    background: #fff5f5 !important;
}

/* Recommendation hint — sits below the field, non-blocking */
.palmer-row-table__row--locked td {
    padding-bottom: 20px !important;
}

.palmer-recommend-hint {
    display: block !important;
    font-family: Jost, sans-serif !important;
    font-size: 10px !important;
    color: #2b7a5a !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
    pointer-events: none !important;
}

/* Keep lock-hint style for backward compat, but green now means recommend */
.palmer-lock-hint {
    display: block !important;
    font-family: Jost, sans-serif !important;
    font-size: 10px !important;
    color: #2b7a5a !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
    pointer-events: none !important;
}

/* ── TEXT / EMAIL / TEL / NUMBER / URL INPUTS ───────────────── */

.palmer-form input[type=text],
.palmer-form input[type=email],
.palmer-form input[type=tel],
.palmer-form input[type=number],
.palmer-form input[type=url] {
    width: 100% !important;
    background: transparent !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.60) !important;
    font-weight: 400 !important;
    padding: 5px 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
}

.palmer-form input[type=text]:focus,
.palmer-form input[type=email]:focus,
.palmer-form input[type=tel]:focus,
.palmer-form input[type=number]:focus,
.palmer-form input[type=url]:focus {
    border-bottom-color: #87D2D2 !important;
    outline: none !important;
    box-shadow: none !important;
}

.palmer-form input[type=text]::placeholder,
.palmer-form input[type=email]::placeholder,
.palmer-form input[type=tel]::placeholder,
.palmer-form input[type=number]::placeholder,
.palmer-form input[type=url]::placeholder {
    color: rgba(0, 0, 0, 0.60) !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
}

/* ── DATEPICKER ─────────────────────────────────────────────── */

.palmer-form input[type=text].palmer-datepicker { cursor: pointer; }
.palmer-datepicker-wrap { position: relative; }

.ui-datepicker {
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    padding: 12px !important;
    background: #fff !important;
    z-index: 100000 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.10) !important;
    border-radius: 0 !important;
    padding: 4px 0 10px !important;
    font-family: Jost, sans-serif !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next { top: 4px !important; cursor: pointer !important; }

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    background-image: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    font-size: 18px;
    color: #000;
}

.ui-datepicker td a,
.ui-datepicker td span {
    font-family: Jost, sans-serif !important;
    border-radius: 0 !important;
    text-align: center !important;
}

.ui-datepicker td a:hover { background: #87D2D2 !important; color: #fff !important; border: none !important; }
.ui-datepicker .ui-state-active { background: #87D2D2 !important; color: #fff !important; border: none !important; }

/* ── TEXTAREA ──────────────────────────────────────────────── */

.palmer-form textarea {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.80) !important;
    border-radius: 0 !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.60) !important;
    font-weight: 400 !important;
    padding: 5px !important;
    outline: none !important;
    resize: vertical;
    transition: border-color 0.2s;
}

.palmer-form textarea:focus { border-color: #87D2D2 !important; }
.palmer-form textarea::placeholder { color: rgba(0, 0, 0, 0.60) !important; font-size: 24px !important; }

/* ── SELECT ─────────────────────────────────────────────────── */

.palmer-form select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: url('https://dev.palmerindustries.com/wp-content/uploads/2025/04/Vector-2.svg') no-repeat right 10px center transparent !important;
    background-size: 30px 30px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.60) !important;
    font-weight: 400 !important;
    padding: 5px 40px 5px 5px !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.2s;
}

.palmer-form select:focus { border-bottom-color: #87D2D2 !important; }

/* ── RADIO BUTTONS ──────────────────────────────────────────── */

.palmer-radio-group { display: flex !important; flex-direction: column !important; gap: 12px !important; }

.palmer-radio-group--inline {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    border-bottom: 1px solid #000 !important;
    padding-bottom: 8px !important;
}

.palmer-radio-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.60) !important;
    cursor: pointer !important;
}

.palmer-form input[type=radio] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fff !important;
    border: 2px solid rgba(0, 0, 0, 0.80) !important;
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    border-radius: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
}

.palmer-form input[type=radio]:checked {
    background-image: url('https://dev.palmerindustries.com/wp-content/plugins/custom-elementor-widgets/assets/images/on.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    border-color: #87D2D2 !important;
}

/* ── CHECKBOXES ─────────────────────────────────────────────── */

.palmer-checkbox-group { display: flex !important; flex-direction: column !important; gap: 12px !important; }

.palmer-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.60) !important;
    cursor: default !important;          /* label text is NOT clickable */
    pointer-events: none !important;
}

/* Only the checkbox input itself is interactive */
.palmer-checkbox-label input[type=checkbox] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.palmer-form input[type=checkbox] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fff !important;
    border: 2px solid rgba(0, 0, 0, 0.80) !important;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    position: relative !important;
}

.palmer-form input[type=checkbox]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    width: 16px !important;
    height: 10px !important;
    border-left: 3px solid #87D2D2 !important;
    border-bottom: 3px solid #87D2D2 !important;
    transform: rotate(-45deg) !important;
}

/* ── FILE UPLOAD ─────────────────────────────────────────────── */

.palmer-file-wrap { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 12px !important; }

.palmer-file-btn {
    display: inline-block !important;
    background: #fff !important;
    padding: 12px 32px !important;
    border: 1px solid rgba(135, 210, 210, 1) !important;
    color: rgba(36, 36, 36, 1) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-family: Jost, sans-serif !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.3s, border-color 0.3s !important;
}

.palmer-file-btn:hover { background: transparent !important; border-color: #000 !important; }

.palmer-file-names {
    font-family: Jost, sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.60);
    word-break: break-all;
}

/* ── VALIDATION STATES ──────────────────────────────────────── */

.palmer-form input.palmer-field-error,
.palmer-form select.palmer-field-error,
.palmer-form textarea.palmer-field-error,
.palmer-row-table__input.palmer-field-error,
.palmer-row-table__select.palmer-field-error {
    border-color: #e53e3e !important;
    outline: 1.5px solid #e53e3e !important;
    outline-offset: 0 !important;
}

.palmer-form input[type=radio].palmer-field-error { border-color: #e53e3e !important; }

/* Error placeholder: low-opacity red */
.palmer-form input.palmer-field-error::placeholder,
.palmer-form textarea.palmer-field-error::placeholder,
.palmer-row-table__input.palmer-field-error::placeholder {
    color: rgba(229, 62, 62, 0.55) !important;
    opacity: 1 !important;
}

.palmer-error { display: block; font-family: Jost, sans-serif; font-size: 13px; color: #e53e3e; margin-top: 4px; }

/* ── BOLD IN HTML BLOCKS ─────────────────────────────────────── */

.palmer-html-block strong,
.palmer-html-block b {
    font-weight: 700 !important;
}

/* ── BOLD FIELD SUPPORT ──────────────────────────────────────── */

.palmer-form input[style*="font-weight: bold"],
.palmer-form input[style*="font-weight:bold"],
.palmer-form input.palmer-bold,
.palmer-row-table__input[style*="font-weight: bold"],
.palmer-row-table__input[style*="font-weight:bold"],
.palmer-row-table__input.palmer-bold { font-weight: bold !important; }

/* ── STEP TRANSITION ANIMATION ──────────────────────────────── */

.palmer-form__step {
    animation: none;
}

.palmer-step-visible {
    animation: palmerFadeSlideIn 0.35s ease both !important;
}

@keyframes palmerFadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SIDEBAR LINE TRANSITION ─────────────────────────────────── */

.palmer-sidebar-item__line {
    transition: background 0.4s ease !important;
}

.palmer-sidebar-item__circle {
    transition: border-color 0.3s ease, background 0.3s ease !important;
}

.palmer-sidebar-item__dot {
    transition: background 0.3s ease !important;
}

/* ── RESPONSE MESSAGE FADE ───────────────────────────────────── */

.palmer-form__response {
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.palmer-response--fading {
    opacity: 0 !important;
    pointer-events: none !important;
}

.palmer-form__success {
    animation: palmerFadeSlideIn 0.4s ease both;
    color: #2e7d32;
    font-family: Jost, sans-serif;
    font-size: 18px;
    background: rgba(46, 125, 50, 0.08);
    padding: 16px 20px;
    border-left: 4px solid #2e7d32;
}

.palmer-form__error {
    color: #c62828;
    font-family: Jost, sans-serif;
    font-size: 18px;
    background: rgba(198, 40, 40, 0.08);
    padding: 16px 20px;
    border-left: 4px solid #c62828;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */

.palmer-form .palmer-button,
.palmer-form .palmer-b-button {
    padding: 12px 32px;
    background-color: #fff;
    color: rgba(36, 36, 36, 1);
    border: 1px solid rgba(135, 210, 210, 1);
    font-size: 18px;
    font-weight: 400;
    line-height: 25.2px;
    font-family: Jost, sans-serif;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.palmer-form .palmer-button { background-color: #87D2D2; }

.palmer-form .palmer-button:hover,
.palmer-form .palmer-b-button:hover { background-color: transparent !important; border-color: #000 !important; }

.palmer-form .palmer-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── NAVIGATION ROW ─────────────────────────────────────────── */

.palmer-form__nav,
.palmer-form .form-navigation {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    margin: 50px 0 20px;
}

.palmer-form .form-btm .form-btn-contain {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 0;
}

/* ── PROGRESS BAR (non-sidebar mode) ────────────────────────── */

.step-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-top: 40px;
    padding-bottom: 30px;
}

.steps-progress {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: Jost, sans-serif;
}

.steps-progress p { color: #fff !important; font-size: 18px !important; margin: 0 !important; }
.steps-progress.active { background-color: rgba(135, 210, 210, 1); }

.steps-progress:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -35px;
    width: 50px;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
    transform: translateY(-50%);
}

.steps-progress.active + .steps-progress::before { background-color: rgba(135, 210, 210, 1); }

.mobile-step-progress { display: none; align-items: center; justify-content: center; flex-direction: column; }

/* ── HTML BLOCK ─────────────────────────────────────────────── */

.palmer-html-block { font-family: Jost, sans-serif; color: rgba(0, 0, 0, 0.60); font-size: 16px; }

/* ── GRID ROWS ──────────────────────────────────────────────── */

.palmer-form .row { display: flex !important; flex-wrap: wrap !important; margin: 0 -12px !important; }
.palmer-form .row > [class*='col-'] { padding: 0 12px !important; box-sizing: border-box !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* ── MOBILE STEP HEADER (sidebar mode) — hidden on desktop ── */
.palmer-mobile-step-header { display: none; }
.palmer-desktop-step-title { display: block; }

@media (max-width: 769px) {

    /* Section: block so children stack */
    .palmer-form-section--has-sidebar {
        display: block !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
    }

    /* ── TOP ROW: sidebar left + step header right ── */
    .palmer-form-section--has-sidebar .palmer-form-sidebar {
        display: inline-block !important;
        width: 130px !important;
        min-width: 130px !important;
        vertical-align: top !important;
        float: left !important;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Mobile step header: sits beside the sidebar float */
    .palmer-mobile-step-header {
        display: block !important;
        overflow: hidden !important;
        padding-left: 12px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    .palmer-mobile-step-num {
        display: block !important;
        font-family: Jost, sans-serif !important;
        font-size: 16px !important;
        color: #87D2D2 !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    .palmer-mobile-step-header .palmer-mobile-step-title {
        display: block !important;
        font-family: "Baskervvile", serif !important;
        font-size: 26px !important;
        font-weight: 500 !important;
        color: #000 !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* Clearfix: after sidebar+header float, clear so fields go below */
    .palmer-form-section--has-sidebar .palmer-form-inner::before {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
    .palmer-form-section--has-sidebar::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    /* Form inner: full width, sits below the float after clearfix */
    .palmer-form-section--has-sidebar .palmer-form-inner {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop step title — mobile header replaces it */
    .palmer-form-section--has-sidebar .palmer-desktop-step-title {
        display: none !important;
    }

    /* Step box: strip all padding/bg */
    .palmer-form__step,
    .palmer-form-section--has-sidebar .palmer-form__step {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* ── SIDEBAR ITEMS: stay vertical ── */
    .palmer-form-section--has-sidebar .palmer-sidebar-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        flex: none !important;
    }
    .palmer-form-section--has-sidebar .palmer-sidebar-item__track {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    .palmer-form-section--has-sidebar .palmer-sidebar-item__circle {
        width: 22px !important;
        height: 22px !important;
    }
    .palmer-form-section--has-sidebar .palmer-sidebar-item__line {
        width: 2px !important;
        height: 30px !important;
        flex: none !important;
    }
    .palmer-form-section--has-sidebar .palmer-sidebar-item__label {
        font-size: 11px !important;
        text-align: left !important;
        padding-top: 3px !important;
        line-height: 1.2 !important;
    }

    /* ── FIELDS: full width, block, left-aligned ── */

    /* Row: block */
    .palmer-form .row {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .palmer-form .row > [class*='col-'] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Field wrap */
    .palmer-field-wrap,
    .palmer-form-section--has-sidebar .palmer-field-wrap {
        display: block !important;
        width: 100% !important;
        margin-bottom: 24px !important;
        box-sizing: border-box !important;
    }

    /* Labels */
    .palmer-field-wrap label,
    .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap label,
    .palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        flex: none !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    /* ── ALL INPUTS / SELECTS / TEXTAREAS ── */
    .palmer-form-section--has-sidebar .palmer-form input[type=text],
    .palmer-form-section--has-sidebar .palmer-form input[type=email],
    .palmer-form-section--has-sidebar .palmer-form input[type=tel],
    .palmer-form-section--has-sidebar .palmer-form input[type=number],
    .palmer-form-section--has-sidebar .palmer-form input[type=url],
    .palmer-form-section--has-sidebar .palmer-form select,
    .palmer-form-section--has-sidebar .palmer-form textarea,
    .palmer-form input[type=text],
    .palmer-form input[type=email],
    .palmer-form input[type=tel],
    .palmer-form input[type=number],
    .palmer-form input[type=url],
    .palmer-form select,
    .palmer-form textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        flex: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        align-self: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
    }
    .palmer-form input[type=text]::placeholder,
    .palmer-form input[type=email]::placeholder,
    .palmer-form input[type=tel]::placeholder,
    .palmer-form input[type=number]::placeholder,
    .palmer-form input[type=url]::placeholder,
    .palmer-form textarea::placeholder { font-size: 16px !important; }

    .palmer-form textarea,
    .palmer-form-section--has-sidebar .palmer-form textarea {
        resize: vertical !important;
        min-height: 70px !important;
    }

    /* ── RADIO ── */
    .palmer-radio-group,
    .palmer-form-section--has-sidebar .palmer-radio-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .palmer-radio-group--inline,
    .palmer-form-section--has-sidebar .palmer-radio-group--inline {
        flex-direction: column !important;
        gap: 14px !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .palmer-radio-label,
    .palmer-form-section--has-sidebar .palmer-radio-label {
        font-size: 16px !important;
        gap: 12px !important;
        pointer-events: auto !important;
    }

    /* ── CHECKBOX ── */
    .palmer-checkbox-group { display: flex !important; flex-direction: column !important; gap: 14px !important; }
    .palmer-checkbox-label { font-size: 16px !important; gap: 12px !important; }

    /* Tap targets */
    .palmer-form input[type=radio],
    .palmer-form input[type=checkbox] {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        flex: none !important;
        flex-shrink: 0 !important;
        float: none !important;
    }

    /* ── FILE ── */
    .palmer-file-wrap { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
    .palmer-file-btn { display: block !important; width: 100% !important; text-align: center !important; font-size: 16px !important; padding: 13px 16px !important; box-sizing: border-box !important; }

    /* ── BUTTONS ── */
    .palmer-form .palmer-button,
    .palmer-form .palmer-b-button {
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;
        padding: 13px 16px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* ── NAVIGATION ── */
    .palmer-form__nav,
    .palmer-form .form-navigation,
    .palmer-form-section--has-sidebar .palmer-form__nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin: 24px 0 12px !important;
        justify-content: flex-start !important;
    }
    .palmer-form .form-btm { display: block !important; width: 100% !important; }
    .palmer-form .form-btm .form-btn-contain {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── PROGRESS BAR ── */
    .desktop-progress-bar { display: none !important; }
    .mobile-step-progress { display: flex !important; }

    /* ── POPUP ── */
    .palmer-field-popup-box { padding: 20px 14px !important; width: 95% !important; box-sizing: border-box !important; }

    /* ── ROW TABLE ── */
    .palmer-row-table thead th { font-size: 10px !important; padding-bottom: 8px !important; }
    .palmer-row-table__input  { font-size: 16px !important; min-width: 70px !important; }
    .palmer-row-table__select { font-size: 16px !important; min-width: 70px !important; }
    .palmer-row-table__row td { padding: 8px 6px 8px 0 !important; }
    .palmer-row-table__footer { flex-wrap: wrap !important; gap: 10px !important; }
    .palmer-row-table__add-btn { display: inline-block !important; width: auto !important; font-size: 15px !important; padding: 10px 16px !important; }

    /* ── NOTE + IMAGE ── */
    .palmer-note-image__drop-inner { padding: 14px 12px !important; }
    .palmer-note-image__drop-label { font-size: 13px !important; }
    .palmer-note-image__thumbs { gap: 8px !important; }
    .palmer-note-image__thumb { width: calc(33.333% - 6px) !important; }
    .palmer-note-image__thumb img { height: 70px !important; }
}


@media (min-width: 770px) {
    .palmer-form .row > .col-md-12 { width: 100% !important;     flex: 0 0 100% !important; }
    .palmer-form .row > .col-md-8  { width: 66.6667% !important; flex: 0 0 66.6667% !important; }
    .palmer-form .row > .col-md-6  { width: 50% !important;      flex: 0 0 50% !important; }
    .palmer-form .row > .col-md-4  { width: 33.3333% !important; flex: 0 0 33.3333% !important; }
    .palmer-form .row > .col-md-3  { width: 25% !important;      flex: 0 0 25% !important; }
}

/* Elementor editor: show every step while building the form */
body.elementor-editor-active .palmer-form .palmer-form__step { display: block !important; }

/* ── 1-COLUMN FIELD WIDTH FIX ───────────────────────────────────────────────
   When a field is placed in a full-width column (col-md-12), constrain the
   input/select so the label above it never wraps to a second line.
   Suppressed on mobile — inputs stay 100% there.
   The cap defaults to 480px but is overridden by the Elementor style control
   (--palmer-1col-input-width CSS variable).
   ─────────────────────────────────────────────────────────────────────────── */

@media (min-width: 770px) {
    .palmer-form .col-md-12.palmer-field-wrap > input[type=text],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=email],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=tel],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=number],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=url],
    .palmer-form .col-md-12.palmer-field-wrap > .palmer-datepicker-wrap,
    .palmer-form .col-md-12.palmer-field-wrap > select {
        width: 100% !important;
    }

    /* Sidebar mode: inputs are flex children — fill remaining space */
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > input[type=text],
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > input[type=email],
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > input[type=tel],
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > input[type=number],
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > input[type=url],
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > select {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE-EXACT OVERRIDES — match Customer Info mockup precisely
   ═══════════════════════════════════════════════════════════════ */

/* Hide the required asterisk in label */
.palmer-form-section--has-sidebar .palmer-form__step label span[aria-hidden="true"],
.palmer-form-section--has-sidebar .palmer-form__step .palmer-field-label span[aria-hidden="true"] {
    display: none !important;
}

/* Form box: no background tint, no padding (sidebar provides spacing) */
.palmer-form-section--has-sidebar .palmer-form__step {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Step title: simple sans-serif, smaller, less padding */
.palmer-form-section--has-sidebar .palmer-form__step h4 {
    font-family: Jost, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #222 !important;
    padding: 0 0 30px 0 !important;
    margin: 0 0 8px 0 !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
}

/* Field wrappers: smaller spacing, label-left layout */
.palmer-form-section--has-sidebar .palmer-field-wrap {
    margin-bottom: 22px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

/* Full-width fields (Email, Confirm email, URL, radio, etc.) keep label-left too */
.palmer-form-section--has-sidebar .palmer-field-wrap label,
.palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label {
    font-family: Jost, sans-serif !important;
    font-size: 15px !important;
    color: #555 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 220px !important;
    min-width: 220px !important;
    line-height: 1.3 !important;
    display: block !important;
}

/* Inputs: smaller font, simple bordered box matching image */
.palmer-form-section--has-sidebar .palmer-form input[type=text],
.palmer-form-section--has-sidebar .palmer-form input[type=email],
.palmer-form-section--has-sidebar .palmer-form input[type=tel],
.palmer-form-section--has-sidebar .palmer-form input[type=number],
.palmer-form-section--has-sidebar .palmer-form input[type=url] {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 9px 12px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.palmer-form-section--has-sidebar .palmer-form input[type=text]:focus,
.palmer-form-section--has-sidebar .palmer-form input[type=email]:focus,
.palmer-form-section--has-sidebar .palmer-form input[type=tel]:focus,
.palmer-form-section--has-sidebar .palmer-form input[type=number]:focus,
.palmer-form-section--has-sidebar .palmer-form input[type=url]:focus {
    border-color: #87D2D2 !important;
    border-bottom-width: 1px !important;
}

.palmer-form-section--has-sidebar .palmer-form input[type=text]::placeholder,
.palmer-form-section--has-sidebar .palmer-form input[type=email]::placeholder,
.palmer-form-section--has-sidebar .palmer-form input[type=tel]::placeholder,
.palmer-form-section--has-sidebar .palmer-form input[type=number]::placeholder,
.palmer-form-section--has-sidebar .palmer-form input[type=url]::placeholder {
    color: #bbb !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Select: bordered box like inputs, NOT underline-only */
.palmer-form-section--has-sidebar .palmer-form select {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center !important;
    background-size: 14px 14px !important;
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: #bbb !important;
    padding: 9px 30px 9px 12px !important;
    height: auto !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.palmer-form-section--has-sidebar .palmer-form select:focus { border-color: #87D2D2 !important; }
.palmer-form-section--has-sidebar .palmer-form select option { color: #333 !important; }

/* Textarea: bordered box */
.palmer-form-section--has-sidebar .palmer-form textarea {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 9px 12px !important;
}

.palmer-form-section--has-sidebar .palmer-form textarea::placeholder { color: #bbb !important; font-size: 14px !important; }

/* Radio group (Yes/No checkboxes in image): right of question label */
.palmer-form-section--has-sidebar .palmer-field-wrap--radio {
    align-items: center !important;
}

.palmer-form-section--has-sidebar .palmer-field-wrap--radio .palmer-field-label {
    width: auto !important;
    flex-shrink: 1 !important;
    margin-right: 16px !important;
}

.palmer-form-section--has-sidebar .palmer-radio-group--inline {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 24px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.palmer-form-section--has-sidebar .palmer-radio-label {
    font-family: Jost, sans-serif !important;
    font-size: 15px !important;
    color: #555 !important;
    gap: 8px !important;
}

.palmer-form-section--has-sidebar .palmer-form input[type=radio] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 1.5px solid #bbb !important;
    border-radius: 3px !important;
    background: #fff !important;
    cursor: pointer !important;
    background-image: none !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.palmer-form-section--has-sidebar .palmer-form input[type=radio]:checked {
    border-color: #87D2D2 !important;
    background: #87D2D2 !important;
    background-image: none !important;
}

.palmer-form-section--has-sidebar .palmer-form input[type=radio]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 6px !important;
    height: 10px !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
}

/* Grid row spacing — match image's tighter column gaps */
.palmer-form-section--has-sidebar .palmer-form .row {
    margin: 0 -16px !important;
}

.palmer-form-section--has-sidebar .palmer-form .row > [class*='col-'] {
    padding: 0 16px !important;
}

/* Form navigation: Next link on the right */
.palmer-form-section--has-sidebar .palmer-form__nav {
    margin: 40px 0 20px !important;
    border-top: none !important;
}

/* Mobile responsive handled in the consolidated @media (max-width: 769px) block above */

/* ── ROW TABLE ──────────────────────────────────────────────────────────────── */

.palmer-row-table-wrap {
    width: 100%;
}

.palmer-form__nav button svg,
.form-btn-contain button svg {
    vertical-align: middle !important;
    position: relative !important;
    top: -1px !important;
}

.palmer-row-table__label {
    margin-bottom: 14px !important;
}

/* Horizontal scroll container — keeps table from breaking the layout */
.palmer-row-table__scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.palmer-row-table {
    width: 100%;
    min-width: 600px;          /* ensures scroll kicks in before it gets too squished */
    border-collapse: collapse;
    font-family: Jost, sans-serif;
}

/* Header row */
.palmer-row-table thead tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.palmer-row-table thead th {
    font-family: Jost, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.50);
    padding: 0 10px 10px 0;
    text-align: left;
    white-space: nowrap;
}

.palmer-row-table thead th:last-child,
.palmer-row-table__del-head { width: 32px; }

/* Row number column */
.palmer-row-table__num {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.30);
    padding-right: 8px !important;
    width: 24px;
    text-align: center;
    vertical-align: middle;
}

/* Data rows */
.palmer-row-table__row td {
    padding: 8px 10px 8px 0;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Inputs inside table cells */
.palmer-row-table__input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-radius: 0 !important;
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.70) !important;
    padding: 4px 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
    min-width: 60px;
}

.palmer-row-table__input:focus {
    border-bottom-color: #87D2D2 !important;
}

.palmer-row-table__input::placeholder {
    color: rgba(0, 0, 0, 0.25) !important;
}

/* Selects inside table cells */
.palmer-row-table__select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: url('https://dev.palmerindustries.com/wp-content/uploads/2025/04/Vector-2.svg') no-repeat right 4px center transparent !important;
    background-size: 16px 16px !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-radius: 0 !important;
    font-family: Jost, sans-serif !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.70) !important;
    padding: 4px 22px 4px 0 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    min-width: 80px;
}

.palmer-row-table__select:focus {
    border-bottom-color: #87D2D2 !important;
}

/* Delete button */
.palmer-row-table__del-cell {
    width: 32px;
    text-align: center;
}

.palmer-row-table__del-btn {
    background: none !important;
    border: none !important;
    color: rgba(0, 0, 0, 0.25) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    transition: color 0.2s !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.palmer-row-table__del-btn:hover {
    color: #c00 !important;
}

/* Footer: Add Row button + count */
.palmer-row-table__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.palmer-row-table__add-btn {
    font-size: 14px !important;
    padding: 8px 20px !important;
}

.palmer-row-table__add-btn:disabled {
    opacity: 0.40 !important;
    cursor: not-allowed !important;
}

.palmer-row-table__count {
    font-family: Jost, sans-serif;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.35);
}

/* Row table mobile handled in the consolidated @media (max-width: 769px) block above */
/* ── NOTE + IMAGE FIELD ─────────────────────────────────────────────────────── */

.palmer-note-image-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.palmer-note-image__textarea {
    width: 100% !important;
    resize: vertical;
}

.palmer-note-image__drop-zone {
    position: relative;
    border: 2px dashed rgba(0,0,0,0.18);
    border-radius: 4px;
    background: rgba(0,0,0,0.015);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 80px;
}

.palmer-note-image__drop-zone:hover,
.palmer-note-image__drop-zone--over {
    border-color: #87D2D2;
    background: rgba(135,210,210,0.05);
}

.palmer-note-image__drop-zone--over {
    border-style: solid;
}

.palmer-note-image__file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.palmer-note-image__drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    color: rgba(0,0,0,0.35);
    text-align: center;
}

.palmer-note-image__drop-inner svg {
    color: rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.palmer-note-image__drop-label {
    font-family: Jost, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

/* Thumbnail grid */
.palmer-note-image__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.palmer-note-image__thumb {
    position: relative;
    width: 100px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
}

.palmer-note-image__thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.palmer-note-image__thumb-name {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 10px;
    color: rgba(0,0,0,0.45);
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.palmer-note-image__thumb .palmer-note-image__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.2s !important;
}

.palmer-note-image__thumb .palmer-note-image__remove:hover {
    background: rgba(180,0,0,0.75) !important;
}

/* Final mobile lock: placed last so desktop/sidebar overrides cannot leak into phones. */
@media (max-width: 769px) {
    .palmer-form-section,
    .palmer-form-section--has-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 16px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-sidebar {
        float: none !important;
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 0 0 4px 0 !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-sidebar::-webkit-scrollbar {
        display: none !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item {
        display: flex !important;
        flex: 1 0 44px !important;
        min-width: 44px !important;
        gap: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__track {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__circle {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__dot {
        width: 8px !important;
        height: 8px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__line {
        width: 100% !important;
        height: 2px !important;
        min-height: 2px !important;
        flex: 1 1 auto !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__label {
        display: none !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-inner,
    .palmer-form-section--has-sidebar .palmer-form {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        clear: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-inner::before,
    .palmer-form-section--has-sidebar::after {
        content: none !important;
        display: none !important;
    }

    .palmer-mobile-step-header {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-mobile-step-num {
        display: block !important;
        font-family: Jost, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        color: #87D2D2 !important;
        margin: 0 0 4px 0 !important;
    }

    .palmer-mobile-step-header .palmer-mobile-step-title {
        display: block !important;
        font-family: Jost, sans-serif !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
        font-weight: 500 !important;
        color: #222 !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .palmer-form-section--has-sidebar .palmer-desktop-step-title {
        display: none !important;
    }

    .palmer-form__step,
    .palmer-form-section--has-sidebar .palmer-form__step {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-form__step-desc {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin: 0 0 18px 0 !important;
    }

    .palmer-form .row,
    .palmer-form-section--has-sidebar .palmer-form .row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-form .row > [class*='col-'],
    .palmer-form-section--has-sidebar .palmer-form .row > [class*='col-'] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-field-wrap,
    .palmer-form-section--has-sidebar .palmer-field-wrap,
    .palmer-form-section--has-sidebar .palmer-field-wrap--radio {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-label-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    .palmer-field-wrap label,
    .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap label,
    .palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap--radio .palmer-field-label {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        flex: none !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        font-family: Jost, sans-serif !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        color: #444 !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }

    .palmer-label-row label,
    .palmer-label-row .palmer-field-label {
        margin: 0 !important;
        flex: 1 1 auto !important;
    }

    .palmer-popup-eye {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .palmer-form input[type=text],
    .palmer-form input[type=email],
    .palmer-form input[type=tel],
    .palmer-form input[type=number],
    .palmer-form input[type=url],
    .palmer-form select,
    .palmer-form textarea,
    .palmer-form-section--has-sidebar .palmer-form input[type=text],
    .palmer-form-section--has-sidebar .palmer-form input[type=email],
    .palmer-form-section--has-sidebar .palmer-form input[type=tel],
    .palmer-form-section--has-sidebar .palmer-form input[type=number],
    .palmer-form-section--has-sidebar .palmer-form input[type=url],
    .palmer-form-section--has-sidebar .palmer-form select,
    .palmer-form-section--has-sidebar .palmer-form textarea,
    .palmer-form .col-md-12.palmer-field-wrap > input[type=text],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=email],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=tel],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=number],
    .palmer-form .col-md-12.palmer-field-wrap > input[type=url],
    .palmer-form .col-md-12.palmer-field-wrap > .palmer-datepicker-wrap,
    .palmer-form .col-md-12.palmer-field-wrap > select {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        float: none !important;
        align-self: auto !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 11px 12px !important;
        font-family: Jost, sans-serif !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        color: #333 !important;
        border: 1px solid #c8c8c8 !important;
        border-radius: 0 !important;
        background-color: #fff !important;
        box-sizing: border-box !important;
    }

    .palmer-form select,
    .palmer-form-section--has-sidebar .palmer-form select {
        padding-right: 36px !important;
        background-position: right 12px center !important;
    }

    .palmer-datepicker-wrap,
    .palmer-form-section--has-sidebar .palmer-form .col-md-12.palmer-field-wrap > .palmer-datepicker-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .palmer-datepicker-wrap input[type=text] {
        width: 100% !important;
    }

    .palmer-form textarea,
    .palmer-form-section--has-sidebar .palmer-form textarea {
        min-height: 92px !important;
        resize: vertical !important;
    }

    .palmer-form input[type=text]::placeholder,
    .palmer-form input[type=email]::placeholder,
    .palmer-form input[type=tel]::placeholder,
    .palmer-form input[type=number]::placeholder,
    .palmer-form input[type=url]::placeholder,
    .palmer-form textarea::placeholder,
    .palmer-form-section--has-sidebar .palmer-form input[type=text]::placeholder,
    .palmer-form-section--has-sidebar .palmer-form input[type=email]::placeholder,
    .palmer-form-section--has-sidebar .palmer-form input[type=tel]::placeholder,
    .palmer-form-section--has-sidebar .palmer-form input[type=number]::placeholder,
    .palmer-form-section--has-sidebar .palmer-form input[type=url]::placeholder,
    .palmer-form-section--has-sidebar .palmer-form textarea::placeholder {
        font-size: 16px !important;
        color: #8c8c8c !important;
    }

    .palmer-radio-group,
    .palmer-checkbox-group,
    .palmer-form-section--has-sidebar .palmer-radio-group,
    .palmer-form-section--has-sidebar .palmer-radio-group--inline,
    .palmer-form-section--has-sidebar .palmer-checkbox-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    .palmer-radio-label,
    .palmer-checkbox-label,
    .palmer-form-section--has-sidebar .palmer-radio-label,
    .palmer-form-section--has-sidebar .palmer-checkbox-label {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        color: #444 !important;
        box-sizing: border-box !important;
    }

    .palmer-form input[type=radio],
    .palmer-form input[type=checkbox],
    .palmer-form-section--has-sidebar .palmer-form input[type=radio],
    .palmer-form-section--has-sidebar .palmer-form input[type=checkbox] {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        flex: 0 0 24px !important;
        margin: 0 !important;
    }

    .palmer-checkbox-text {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .palmer-file-wrap,
    .palmer-note-image-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .palmer-file-btn,
    .palmer-note-image__drop-zone {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .palmer-note-image__thumbs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .palmer-note-image__thumb {
        width: 100% !important;
    }

    .palmer-row-table-wrap,
    .palmer-row-table__scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .palmer-row-table {
        min-width: 520px !important;
    }

    .palmer-row-table__footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .palmer-row-table__add-btn,
    .palmer-file-btn,
    .palmer-form .palmer-button,
    .palmer-form .palmer-b-button,
    .palmer-form-section--has-sidebar .palmer-next-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 12px 16px !important;
        font-family: Jost, sans-serif !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    .palmer-form-section--has-sidebar .palmer-next-link {
        background: #87D2D2 !important;
        border: 1px solid #87D2D2 !important;
        color: #000 !important;
    }

    .palmer-form__nav,
    .palmer-form .form-navigation,
    .palmer-form-section--has-sidebar .palmer-form__nav,
    .palmer-form .form-btm,
    .palmer-form .form-btm .form-btn-contain {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
        margin: 24px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-form__response {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 18px !important;
    }

    .palmer-field-popup-box {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        padding: 18px 14px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    .palmer-form-section,
    .palmer-form-section--has-sidebar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .palmer-mobile-step-header .palmer-mobile-step-title {
        font-size: 22px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item {
        flex-basis: 38px !important;
        min-width: 38px !important;
    }

    .palmer-row-table {
        min-width: 460px !important;
    }
}

/* Mobile screenshot layout: vertical step rail on the left, current title on the right. */
@media (max-width: 769px) {
    .palmer-form__step--hidden,
    .palmer-form__step.palmer-form__step--hidden,
    .palmer-form-section--has-sidebar .palmer-form__step.palmer-form__step--hidden,
    .palmer-mobile-step-header.palmer-form__step--hidden {
        display: none !important;
    }

    .palmer-form-section--has-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 42px 30px 38px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-sidebar {
        float: left !important;
        display: block !important;
        width: 45% !important;
        min-width: 148px !important;
        max-width: 245px !important;
        margin: 0 18px 42px 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__track {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 34px !important;
        min-width: 34px !important;
        flex: 0 0 34px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__circle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-width: 1px !important;
        border-color: #999 !important;
        background: #fff !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item--active .palmer-sidebar-item__circle {
        border-color: #87D2D2 !important;
        background: #87D2D2 !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__dot {
        width: 12px !important;
        height: 12px !important;
        background: transparent !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item--active .palmer-sidebar-item__dot {
        background: #fff !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__line {
        width: 1px !important;
        height: 38px !important;
        min-height: 38px !important;
        background: #999 !important;
        flex: 0 0 38px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item--done .palmer-sidebar-item__line {
        background: #87D2D2 !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__label {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 9px 0 0 0 !important;
        margin: 0 !important;
        font-family: Jost, sans-serif !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        color: #111 !important;
        font-weight: 400 !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-inner {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        clear: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-inner::before,
    .palmer-form-section--has-sidebar::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }

    .palmer-mobile-step-header {
        display: block !important;
        overflow: hidden !important;
        width: auto !important;
        max-width: none !important;
        min-height: 210px !important;
        padding: 0 !important;
        margin: 15px 0 10px 0 !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    .palmer-mobile-step-num {
        display: block !important;
        font-family: Jost, sans-serif !important;
        font-size: 36px !important;
        line-height: 1 !important;
        font-weight: 400 !important;
        color: #87D2D2 !important;
        letter-spacing: 0 !important;
        margin: 0 0 22px 0 !important;
        padding: 0 !important;
    }

    .palmer-mobile-step-header .palmer-mobile-step-title {
        display: block !important;
        font-family: Jost, sans-serif !important;
        font-size: 34px !important;
        line-height: 1.15 !important;
        font-weight: 400 !important;
        color: #000 !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .palmer-form-section--has-sidebar .palmer-form,
    .palmer-form-section--has-sidebar .palmer-form__step {
        clear: both !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .palmer-form-section--has-sidebar .palmer-form__fields {
        gap: 0 !important;
    }

    .palmer-field-wrap,
    .palmer-form-section--has-sidebar .palmer-field-wrap {
        margin-bottom: 24px !important;
    }

    .palmer-field-wrap label,
    .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap label,
    .palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label {
        font-size: 22px !important;
        line-height: 1.25 !important;
        color: #8f8f8f !important;
        margin: 0 0 14px 0 !important;
    }

    .palmer-form input[type=text],
    .palmer-form input[type=email],
    .palmer-form input[type=tel],
    .palmer-form input[type=number],
    .palmer-form input[type=url],
    .palmer-form select,
    .palmer-form textarea,
    .palmer-form-section--has-sidebar .palmer-form input[type=text],
    .palmer-form-section--has-sidebar .palmer-form input[type=email],
    .palmer-form-section--has-sidebar .palmer-form input[type=tel],
    .palmer-form-section--has-sidebar .palmer-form input[type=number],
    .palmer-form-section--has-sidebar .palmer-form input[type=url],
    .palmer-form-section--has-sidebar .palmer-form select,
    .palmer-form-section--has-sidebar .palmer-form textarea {
        min-height: 50px !important;
        padding: 12px 20px !important;
        font-size: 18px !important;
        border: 1px solid #d2d2d2 !important;
        color: #333 !important;
    }

    .palmer-form input[type=text]::placeholder,
    .palmer-form input[type=email]::placeholder,
    .palmer-form input[type=tel]::placeholder,
    .palmer-form input[type=number]::placeholder,
    .palmer-form input[type=url]::placeholder,
    .palmer-form textarea::placeholder {
        font-size: 18px !important;
        color: #c5c5c5 !important;
    }
}

@media (max-width: 520px) {
    .palmer-form-section--has-sidebar {
        padding: 30px 18px 32px !important;
    }

    .palmer-form-section--has-sidebar .palmer-form-sidebar {
        width: 47% !important;
        min-width: 138px !important;
        margin-right: 12px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item {
        gap: 10px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__circle {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__track {
        width: 30px !important;
        min-width: 30px !important;
        flex-basis: 30px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__line {
        height: 34px !important;
        min-height: 34px !important;
        flex-basis: 34px !important;
    }

    .palmer-form-section--has-sidebar .palmer-sidebar-item__label {
        font-size: 12px !important;
        padding-top: 8px !important;
    }

    .palmer-mobile-step-header {
        min-height: 190px !important;
    }

    .palmer-mobile-step-num {
        font-size: 30px !important;
        margin-bottom: 18px !important;
    }

    .palmer-mobile-step-header .palmer-mobile-step-title {
        font-size: 28px !important;
    }

    .palmer-field-wrap label,
    .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap label,
    .palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label {
        font-size: 19px !important;
    }
}

/* Mobile field breathing room: keep labels from riding the previous input. */
@media (max-width: 769px) {
    .palmer-form-section--has-sidebar .palmer-form .row > .palmer-field-wrap,
    .palmer-form-section--has-sidebar .palmer-field-wrap,
    .palmer-form .row > .palmer-field-wrap,
    .palmer-field-wrap {
        margin-bottom: 34px !important;
    }

    .palmer-form-section--has-sidebar .palmer-form .row > .palmer-field-wrap:last-child,
    .palmer-form .row > .palmer-field-wrap:last-child {
        margin-bottom: 0 !important;
    }

    .palmer-field-wrap label,
    .palmer-field-wrap .palmer-field-label,
    .palmer-form-section--has-sidebar .palmer-field-wrap label,
    .palmer-form-section--has-sidebar .palmer-field-wrap .palmer-field-label {
        margin-bottom: 16px !important;
    }

    .palmer-form input[type=text],
    .palmer-form input[type=email],
    .palmer-form input[type=tel],
    .palmer-form input[type=number],
    .palmer-form input[type=url],
    .palmer-form select,
    .palmer-form textarea,
    .palmer-form-section--has-sidebar .palmer-form input[type=text],
    .palmer-form-section--has-sidebar .palmer-form input[type=email],
    .palmer-form-section--has-sidebar .palmer-form input[type=tel],
    .palmer-form-section--has-sidebar .palmer-form input[type=number],
    .palmer-form-section--has-sidebar .palmer-form input[type=url],
    .palmer-form-section--has-sidebar .palmer-form select,
    .palmer-form-section--has-sidebar .palmer-form textarea {
        margin-bottom: 0 !important;
    }
}

/* Mobile alignment polish: title and secondary nav start from the left edge. */
@media (max-width: 769px) {
    .palmer-mobile-step-header {
        text-align: left !important;
    }

    .palmer-form__nav,
    .palmer-form .form-navigation,
    .palmer-form-section--has-sidebar .palmer-form__nav,
    .palmer-form .form-btm,
    .palmer-form .form-btm .form-btn-contain {
        align-items: flex-start !important;
    }

    .palmer-form .palmer-b-button,
    .palmer-form-section--has-sidebar .palmer-form .palmer-b-button,
    .palmer-form .btn-go-back,
    .palmer-form-section--has-sidebar .palmer-form .btn-go-back {
        width: auto !important;
        min-width: 0 !important;
        align-self: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        border-color: transparent !important;
        color: #87D2D2 !important;
    }

    .palmer-form .palmer-button:not(.palmer-b-button):not(.btn-go-back) {
        align-self: stretch !important;
        width: 100% !important;
    }
}

/* Mobile row-table polish: scroll horizontally without compressing cells. */
@media (max-width: 769px) {
    .palmer-row-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    .palmer-row-table__label {
        margin-bottom: 12px !important;
        border-top: 0 !important;
    }

    .palmer-row-table__scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 0 12px 0 !important;
        margin: 0 !important;
        border-top: 0 !important;
    }

    .palmer-row-table__scroll::-webkit-scrollbar {
        height: 4px !important;
    }

    .palmer-row-table__scroll::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .palmer-row-table__scroll::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.28) !important;
        border-radius: 999px !important;
    }

    .palmer-row-table {
        width: max-content !important;
        min-width: 760px !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        border-top: 0 !important;
    }

    .palmer-row-table thead,
    .palmer-row-table thead tr,
    .palmer-row-table thead th,
    .palmer-row-table tbody,
    .palmer-row-table__row,
    .palmer-row-table__row td {
        border-top: 0 !important;
    }

    .palmer-row-table thead tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    }

    .palmer-row-table thead th {
        padding: 0 10px 12px 0 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .palmer-row-table__num {
        width: 34px !important;
        min-width: 34px !important;
        padding-right: 10px !important;
    }

    .palmer-row-table__row td {
        padding: 12px 10px 12px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    }

    .palmer-row-table__input,
    .palmer-row-table__select {
        display: block !important;
        width: 100% !important;
        min-height: 52px !important;
        height: 52px !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
        border: 1px solid #d2d2d2 !important;
        background-color: #fff !important;
        box-sizing: border-box !important;
    }

    .palmer-row-table__input {
        min-width: 92px !important;
        padding: 10px 12px !important;
    }

    .palmer-row-table__select {
        min-width: 112px !important;
        padding: 10px 34px 10px 12px !important;
        background-position: right 12px center !important;
    }

    .palmer-row-table thead th:nth-child(2),
    .palmer-row-table__row td:nth-child(2) {
        width: 118px !important;
        min-width: 118px !important;
    }

    .palmer-row-table thead th:nth-child(3),
    .palmer-row-table__row td:nth-child(3) {
        width: 90px !important;
        min-width: 90px !important;
    }

    .palmer-row-table thead th:nth-child(4),
    .palmer-row-table__row td:nth-child(4),
    .palmer-row-table thead th:nth-child(5),
    .palmer-row-table__row td:nth-child(5) {
        width: 112px !important;
        min-width: 112px !important;
    }

    .palmer-row-table thead th:nth-child(6),
    .palmer-row-table__row td:nth-child(6) {
        width: 160px !important;
        min-width: 160px !important;
    }

    .palmer-row-table thead th:nth-child(7),
    .palmer-row-table__row td:nth-child(7) {
        width: 110px !important;
        min-width: 110px !important;
    }

    .palmer-row-table__footer {
        margin-top: 18px !important;
        gap: 14px !important;
        align-items: flex-start !important;
    }
}