/*
 * cp-forms.css
 *
 * Single shared stylesheet for all Create/Edit form pages (Events, Trails,
 * Marketplace, Catalog, Mods, Requests, Business Cards, Profiles, etc).
 * Implements the "Form Creation Page Layout Rules" in AGENTS.md.
 *
 * Do not duplicate these rules in page-specific <style> blocks — extend this
 * file instead so every Create/Edit form stays visually and behaviorally
 * consistent.
 */

:root {
    --cp-control-height: 42px;
    --cp-required-color: #dc3545;
    --cp-valid-color: #198754;
    --cp-invalid-color: #dc3545;
}

[data-cp-theme="dark"],
[data-mdb-theme="dark"] {
    /* Bootstrap's dark red/green already meet contrast on dark surfaces;
       nudge slightly brighter for the small label text used here. */
    --cp-required-color: #ff6b6b;
    --cp-valid-color: #3ddc84;
    --cp-invalid-color: #ff6b6b;
}

/* ---------------------------------------------------------------------- */
/* 1. Page wrapper                                                        */
/* ---------------------------------------------------------------------- */

.cp-form-page {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding: 12px;
}

@media (min-width: 768px) {
    .cp-form-page {
        padding: 20px;
    }
}

.cp-form-header {
    margin-bottom: 16px;
}

.cp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------------------------------------------------------------------- */
/* 2. Form sections / cards                                               */
/* ---------------------------------------------------------------------- */

.cp-form-card {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

.cp-form-card-header {
    margin-bottom: 12px;
}

/* ---------------------------------------------------------------------- */
/* 3. Responsive field grid                                               */
/* ---------------------------------------------------------------------- */

.cp-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .cp-form-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 16px;
    }

    .cp-col-2 { grid-column: span 2; }
    .cp-col-3 { grid-column: span 3; }
    .cp-col-4 { grid-column: span 4; }
    .cp-col-5 { grid-column: span 5; }
    .cp-col-6 { grid-column: span 6; }
    .cp-col-8 { grid-column: span 8; }
    .cp-col-12 { grid-column: span 12; }
}

/* ---------------------------------------------------------------------- */
/* 4. Consistent control height                                           */
/* ---------------------------------------------------------------------- */

.cp-control,
.cp-field .form-control,
.cp-field .form-select,
.cp-unit-control input,
.cp-unit-control select,
.cp-currency-control input,
.cp-currency-control select {
    min-height: var(--cp-control-height);
    height: var(--cp-control-height);
}

.cp-field textarea.form-control {
    height: auto;
    min-height: calc(var(--cp-control-height) * 2);
}

/* ---------------------------------------------------------------------- */
/* 5. Unit / temperature controls                                         */
/* ---------------------------------------------------------------------- */

.cp-unit-control {
    display: flex;
    width: 100%;
}

.cp-unit-control input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cp-unit-control select.cp-unit-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 72px;
    max-width: 112px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ---------------------------------------------------------------------- */
/* 6. Currency controls                                                   */
/* ---------------------------------------------------------------------- */

.cp-currency-control {
    display: flex;
    width: 100%;
}

.cp-currency-control select.cp-currency-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 68px;
    max-width: 104px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cp-currency-control input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ---------------------------------------------------------------------- */
/* 7. Related field groups (date+time, lat+lng, etc.)                     */
/* ---------------------------------------------------------------------- */

/* Connected date + time control (Events Schedule) */
.cp-datetime-control {
    display: flex;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.cp-datetime-control > .form-control,
.cp-datetime-control > .form-select {
    min-height: var(--cp-control-height);
    height: var(--cp-control-height);
}

.cp-datetime-control > input[type="date"] {
    flex: 0 1 10.5rem;
    min-width: 9.5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cp-datetime-control > select {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.25rem;
    max-width: 9rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.cp-datetime-control--all-day > input[type="date"] {
    border-radius: var(--bs-border-radius);
}

.cp-datetime-control--all-day > select {
    display: none;
}

.cp-event-days-control {
    width: auto;
    max-width: 100%;
}

.cp-field-group > .cp-field {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 430px) {
    .cp-field-group.cp-stack-mobile {
        flex-direction: column;
    }
}

/* Native date/time inputs — click anywhere on the control to open the picker */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control,
input[type="week"].form-control {
    position: relative;
    cursor: pointer;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator,
input[type="month"].form-control::-webkit-calendar-picker-indicator,
input[type="week"].form-control::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* 8. Compact field sizing                                                */
/* ---------------------------------------------------------------------- */

.cp-input-xs {
    max-width: 72px;
}

.cp-input-sm {
    max-width: 120px;
}

.cp-input-md {
    max-width: 220px;
}

/* ---------------------------------------------------------------------- */
/* 9. Required field label validation                                    */
/* ---------------------------------------------------------------------- */

.cp-label.required {
    color: var(--cp-required-color);
}

.cp-field.is-valid .cp-label.required,
.cp-field-group.is-valid .cp-label.required,
.cp-field.is-valid .form-label.cp-field-label.required,
.cp-field-group.is-valid .form-label.cp-field-label.required {
    color: var(--cp-valid-color);
}

.cp-field.is-invalid .cp-label.required,
.cp-field-group.is-invalid .cp-label.required,
.cp-field.is-invalid .form-label.cp-field-label.required,
.cp-field-group.is-invalid .form-label.cp-field-label.required {
    color: var(--cp-invalid-color);
}

/* ---------------------------------------------------------------------- */
/* 11. Labels and inline helper text                                      */
/* ---------------------------------------------------------------------- */

.cp-label-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    margin-bottom: 4px;
}

.cp-label {
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
}

.cp-helper-inline {
    min-width: 0;
}

.cp-field {
    margin-bottom: 0;
}

/* Register / profile settings: cp-field validation without cp-form-page control sizing */
#register-form .cp-field .form-control:not(.cp-fav-notify-control),
#register-form .cp-field .form-select:not(.cp-fav-notify-control),
#register-form .cp-field .input-group .form-control,
#edit-profile-form .cp-field .form-control:not(.cp-fav-notify-control),
#edit-profile-form .cp-field .form-select:not(.cp-fav-notify-control),
#edit-profile-form .cp-field .input-group .form-control {
    min-height: unset;
    height: auto;
}

#register-form .cp-field .form-label.cp-field-label,
#edit-profile-form .cp-field .form-label.cp-field-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: normal;
}

/* Required labels: color only — no extra asterisk glyph */
#register-form .cp-field-label.required::after,
#edit-profile-form .cp-field-label.required::after {
    content: none;
}

/* ---------------------------------------------------------------------- */
/* Register / Edit Profile — unified control dimensions                   */
/* Height + font-size live here only (not page-scoped rules in site.css). */
/* ---------------------------------------------------------------------- */

#register-form .cp-profile-contact-row .cp-phone-input .input-group,
#edit-profile-form .cp-profile-contact-row .cp-phone-input .input-group,
#register-form .cp-profile-contact-row .cp-input-group,
#edit-profile-form .cp-profile-contact-row .cp-input-group,
#register-form .cp-field > .cp-phone-input .input-group,
#edit-profile-form .cp-field > .cp-phone-input .input-group,
#register-form .cp-field > .cp-input-group,
#edit-profile-form .cp-field > .cp-input-group {
    align-items: stretch;
    min-height: var(--cp-control-height);
}

#register-form .cp-profile-contact-row .cp-phone-input .cp-phone-input__dial,
#register-form .cp-profile-contact-row .cp-phone-input .cp-phone-input__national,
#register-form .cp-profile-contact-row .cp-input-group .form-control,
#register-form .cp-profile-contact-row .cp-input-group .input-group-text,
#register-form .cp-field > .cp-phone-input .cp-phone-input__dial,
#register-form .cp-field > .cp-phone-input .cp-phone-input__national,
#register-form .cp-field > .cp-phone-input .input-group-text,
#register-form .cp-field > .cp-input-group .form-control,
#register-form .cp-field > .cp-input-group .input-group-text,
#edit-profile-form .cp-profile-contact-row .cp-phone-input .cp-phone-input__dial,
#edit-profile-form .cp-profile-contact-row .cp-phone-input .cp-phone-input__national,
#edit-profile-form .cp-profile-contact-row .cp-input-group .form-control,
#edit-profile-form .cp-profile-contact-row .cp-input-group .input-group-text,
#edit-profile-form .cp-field > .cp-phone-input .cp-phone-input__dial,
#edit-profile-form .cp-field > .cp-phone-input .cp-phone-input__national,
#edit-profile-form .cp-field > .cp-phone-input .input-group-text,
#edit-profile-form .cp-field > .cp-input-group .form-control,
#edit-profile-form .cp-field > .cp-input-group .input-group-text {
    min-height: var(--cp-control-height);
    height: var(--cp-control-height);
    font-size: 1rem;
}

#register-form .cp-address-details .form-control,
#edit-profile-form .cp-address-details .form-control {
    min-height: var(--cp-control-height);
    height: var(--cp-control-height);
    font-size: 1rem;
}

#register-form .cp-address-details .form-control::placeholder,
#edit-profile-form .cp-address-details .form-control::placeholder,
#register-form .cp-profile-contact-row .form-control::placeholder,
#edit-profile-form .cp-profile-contact-row .form-control::placeholder,
#register-form .cp-field > .cp-input-group .form-control::placeholder,
#edit-profile-form .cp-field > .cp-input-group .form-control::placeholder {
    font-size: 1rem;
}

/* ---------------------------------------------------------------------- */
/* 13. Dark / light mode                                                  */
/* ---------------------------------------------------------------------- */

.cp-form-card,
.cp-field .form-control,
.cp-field .form-select,
.cp-unit-control input,
.cp-unit-control select,
.cp-currency-control input,
.cp-currency-control select {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

/* ---------------------------------------------------------------------- */
/* 21. Form actions                                                       */
/* ---------------------------------------------------------------------- */

.cp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

@media (max-width: 430px) {
    .cp-form-actions {
        justify-content: stretch;
    }

    .cp-form-actions .btn {
        flex: 1 1 auto;
    }
}

.cp-form-actions--sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    padding: 10px 12px;
    margin-inline: -12px;
}

@media (min-width: 768px) {
    .cp-form-actions--sticky {
        margin-inline: -20px;
        padding-inline: 20px;
    }
}

/* ---------------------------------------------------------------------- */
/* Category create/edit form cards (Events, Trails)                       */
/* ---------------------------------------------------------------------- */

.cp-form-max-1080 {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

/* Map + live post preview on create/edit — sibling of .container, not inside it,
   so the 390px feed card centers on the viewport without form gutter padding. */
.cp-form-map-preview-band {
    width: 100%;
    margin-bottom: 0.5rem;
    --cp-preview-card-width: var(--cp-card-max-width, 390px);
}

.cp-form-map-preview-band .cp-map-template-mobile-preview {
    display: flex;
    justify-content: center;
    padding-inline: 0;
}

.cp-form-map-preview-band .cp-map-template-mobile-preview .cp-map-ad,
.cp-form-map-preview-band .cp-map-ad-slot .cp-map-ad {
    width: min(var(--cp-preview-card-width), 100%);
    max-width: var(--cp-preview-card-width);
    margin-inline: auto;
    flex: 0 0 auto;
}

/* Match feed card width (390px); overrides map-ad-slot 370px cap on desktop */
.cp-form-map-preview-band .cp-create-preview.cp-card {
    width: min(var(--cp-preview-card-width), 100%) !important;
    min-width: 0 !important;
    max-width: var(--cp-preview-card-width) !important;
    margin-inline: auto !important;
}

/* Live preview cover band — match feed post cards + photo slots (3.5:2, contain) */
.cp-form-map-preview-band .cp-create-preview.cp-card .cp-card-img-wrap {
    aspect-ratio: var(--cp-card-media-aspect-ratio, 3.5 / 2) !important;
}

.cp-form-map-preview-band .cp-create-preview.cp-card .cp-card-img-wrap .cp-pic-img,
.cp-form-map-preview-band .cp-create-preview.cp-card .cp-card-img-wrap img {
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 767.98px) {
    .cp-form-map-preview-band .cp-map-template-shell {
        padding: 0 !important;
    }

    .cp-form-map-preview-band .cp-map-template-shell > .row {
        --bs-gutter-x: 0;
        margin-inline: 0;
    }

    .cp-form-map-preview-band .cp-map-template-shell > .row > * {
        padding-inline: 0;
    }
}

.cp-create-form-card {
    border-radius: 1rem;
    overflow: hidden;
}

.cp-create-form-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: var(--mdb-body-color, #1f2937) !important;
}

.cp-create-form-card .card-body {
    padding: 1rem 1.15rem;
}

.cp-create-form-card .card-footer {
    padding: 0.5rem 1rem;
}

/* Category tint headers */
.cp-create-form-card--event .card-header,
.cp-edit-details-header.cp-create-form-card--event,
.cp-create-form-card.cp-create-form-card--event > .card-header {
    background: rgba(59, 113, 202, 0.12) !important;
}

.cp-create-form-card--trail .card-header,
.cp-edit-details-header.cp-create-form-card--trail,
.cp-create-form-card.cp-create-form-card--trail > .card-header {
    background: rgba(25, 135, 84, 0.12) !important;
}

.cp-create-form-card--spot .card-header,
.cp-edit-details-header.cp-create-form-card--spot,
.cp-create-form-card.cp-create-form-card--spot > .card-header {
    background: rgba(111, 66, 193, 0.12) !important;
}

[data-cp-theme="dark"] .cp-create-form-card--event .card-header,
[data-mdb-theme="dark"] .cp-create-form-card--event .card-header {
    background: rgba(147, 197, 253, 0.16) !important;
    color: #eaf2ff !important;
}

[data-cp-theme="dark"] .cp-create-form-card--trail .card-header,
[data-mdb-theme="dark"] .cp-create-form-card--trail .card-header {
    background: rgba(94, 209, 156, 0.18) !important;
    color: #eaf2ff !important;
}

[data-cp-theme="dark"] .cp-create-form-card--spot .card-header,
[data-mdb-theme="dark"] .cp-create-form-card--spot .card-header {
    background: rgba(178, 143, 235, 0.18) !important;
    color: #eaf2ff !important;
}

/* Outer glow per category */
.cp-create-form-card--event {
    box-shadow: 0 4px 18px rgba(59, 113, 202, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cp-create-form-card--trail {
    box-shadow: 0 4px 18px rgba(25, 135, 84, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cp-create-form-card--spot {
    box-shadow: 0 4px 18px rgba(111, 66, 193, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Controls stay inside the card border */
.cp-create-form-card .card-body .form-control,
.cp-create-form-card .card-body .form-select,
.cp-create-form-card .card-body .input-group,
.cp-create-form-card .card-body .cp-currency-control,
.cp-create-form-card .card-body .cp-unit-control {
    max-width: 100%;
}

.cp-create-form-card .card-body hr:not(.cp-loc-section-divider) {
    margin: 1rem 0;
}

/* Edit-form list rows inside create/edit cards — normal vertical rhythm */
.cp-create-form-card .list-group.cp-edit-form-list {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: transparent;
}

.cp-create-form-card .list-group.cp-edit-form-list > .list-group-item {
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
}

.cp-create-form-card .list-group.cp-edit-form-list > .list-group-item + .list-group-item {
    padding-top: 0.85rem;
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.cp-create-form-card .cp-form-section-block > .mb-3:last-child {
    margin-bottom: 0 !important;
}

/* Location section groove — recessed 3D lip below location controls */
.cp-loc-section-divider {
    border: 0;
    height: 5px;
    margin: 1.25rem 0;
    padding: 0;
    opacity: 1;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.12) 44%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(255, 255, 255, 0.28) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.14);
}

[data-cp-theme="dark"] .cp-loc-section-divider,
[data-mdb-theme="dark"] .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.52) 44%,
        rgba(255, 255, 255, 0.16) 45%,
        rgba(255, 255, 255, 0.06) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.cp-create-form-card--event .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(59, 113, 202, 0.55) 0%,
        rgba(59, 113, 202, 0.22) 44%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(147, 197, 253, 0.28) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.55),
        0 4px 12px rgba(59, 113, 202, 0.22),
        inset 0 1px 2px rgba(29, 78, 216, 0.25);
}

.cp-create-form-card--trail .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(25, 135, 84, 0.55) 0%,
        rgba(25, 135, 84, 0.22) 44%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(134, 239, 172, 0.28) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.55),
        0 4px 12px rgba(25, 135, 84, 0.22),
        inset 0 1px 2px rgba(21, 128, 61, 0.25);
}

[data-cp-theme="dark"] .cp-create-form-card--event .cp-loc-section-divider,
[data-mdb-theme="dark"] .cp-create-form-card--event .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(59, 113, 202, 0.72) 0%,
        rgba(59, 113, 202, 0.32) 44%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(147, 197, 253, 0.12) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(59, 113, 202, 0.28),
        inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

[data-cp-theme="dark"] .cp-create-form-card--trail .cp-loc-section-divider,
[data-mdb-theme="dark"] .cp-create-form-card--trail .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(25, 135, 84, 0.72) 0%,
        rgba(25, 135, 84, 0.32) 44%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(134, 239, 172, 0.12) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(25, 135, 84, 0.28),
        inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.ls-shared-card .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(59, 113, 202, 0.5) 0%,
        rgba(59, 113, 202, 0.2) 44%,
        rgba(255, 255, 255, 0.72) 45%,
        rgba(255, 255, 255, 0.28) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.55),
        0 4px 12px rgba(59, 113, 202, 0.18),
        inset 0 1px 2px rgba(29, 78, 216, 0.2);
}

[data-cp-theme="dark"] .ls-shared-card .cp-loc-section-divider,
[data-mdb-theme="dark"] .ls-shared-card .cp-loc-section-divider {
    background: linear-gradient(
        180deg,
        rgba(59, 113, 202, 0.68) 0%,
        rgba(59, 113, 202, 0.3) 44%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(147, 197, 253, 0.1) 100%
    );
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(59, 113, 202, 0.25),
        inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.cp-create-form-card .card-footer .d-flex {
    justify-content: center !important;
}

.cp-create-form-card .cp-reg-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.cp-create-form-card .cp-reg-inline .cp-reg-date-input {
    width: 11rem;
    max-width: 11rem;
    flex: 0 0 auto;
}

.cp-create-form-card .cp-reg-inline .cp-reg-time-input {
    width: 9.5rem;
    max-width: 9.5rem;
    flex: 0 0 auto;
}

@media (max-width: 400px) {
    .cp-create-form-card .cp-reg-inline .cp-reg-date-input,
    .cp-create-form-card .cp-reg-inline .cp-reg-time-input {
        width: auto;
        max-width: none;
        flex: 1 1 9rem;
    }
}

/* Fee row: Fixed/Varies pill + currency + amount on one line */
.cp-fee-inline {
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.cp-fee-inline__label {
    flex-shrink: 0;
}

.cp-fee-inline > .cp-radio-pill,
.cp-fee-inline > .cp-mode-pill-group {
    flex: 0 0 auto;
}

.cp-fee-inline .cp-fee-inputs {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.cp-fee-inline .cp-currency-control {
    width: 100%;
}

@media (max-width: 430px) {
    .cp-fee-inline .cp-fee-inputs {
        flex: 1 1 auto;
        max-width: none;
    }
}

/* ---------------------------------------------------------------------- */
/* Trails / Events create-edit cards — fit controls inside form padding     */
/* ---------------------------------------------------------------------- */

.cp-form-max-1080 .cp-create-form-card.cp-content-card,
.cp-form-max-1080 .ls-shared-card.cp-content-card,
.cp-form-max-1080 .cp-sell-listing-card.cp-content-card,
.cp-form-max-1080 > .card.cp-content-card,
.cp-form-max-1080 .card.cp-content-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.cp-create-form-card .card-body {
    font-size: 0.875rem;
    overflow-x: hidden;
}

.cp-create-form-card .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

.cp-create-form-card .form-control,
.cp-create-form-card .form-select {
    font-size: 0.8125rem;
    min-height: 2.125rem;
    padding: 0.25rem 0.5rem;
}

.cp-create-form-card .btn:not(.cp-radio-pill .btn):not(.cp-radio-pill label.btn) {
    font-size: 0.8125rem;
}

.cp-create-form-card .cp-radio-pill.btn-group,
.cp-create-form-card .cp-radio-pill.cp-mode-pill-group {
    --cp-pill-seg-height: 2rem;
    --cp-pill-seg-pad-x: 0.625rem;
    --cp-pill-seg-font: 0.8125rem;
}

.cp-create-form-card .cp-form-grid {
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .cp-create-form-card .cp-form-grid {
        gap: 1rem;
    }
}

.cp-create-form-card .cp-label {
    font-size: 0.8125rem;
}

.cp-create-form-card .cp-unit-control .cp-unit-select,
.cp-create-form-card .cp-currency-control .cp-currency-select {
    font-size: 0.75rem;
    min-width: 3.25rem;
    max-width: 4.25rem;
    padding-left: 0.35rem;
    padding-right: 1.35rem;
}

/* Location row: wrap on narrow form cards; compact coordinate pair input */
.cp-create-form-card .cp-loc-coords-block {
    gap: 0.5rem;
}

.cp-create-form-card .cp-loc-coord-pair-input {
    font-size: 0.8125rem;
    min-width: 0;
}

.cp-create-form-card .cp-loc-field-row {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cp-create-form-card .cp-loc-field-group {
    flex: 1 1 100%;
    min-width: 0;
    gap: 0.35rem;
}

.cp-create-form-card .cp-loc-coords-meta-line .form-control {
    font-size: 0.8125rem;
}

@media (max-width: 575.98px) {
    .cp-create-form-card .cp-loc-coords-meta-line {
        grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 30%) minmax(5rem, 34%);
        gap: 0.35rem;
    }
}

.cp-create-form-card .cp-loc-field-lookup-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.cp-create-form-card .cp-loc-field-zoom-wrap .form-label {
    font-size: 0.75rem;
}

/* Fee: label + pill + currency + amount on one row */
.cp-create-form-card .cp-fee-inline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    width: 100%;
}

.cp-create-form-card .cp-fee-inline__label {
    white-space: nowrap;
}

.cp-create-form-card .cp-fee-inline > .cp-radio-pill,
.cp-create-form-card .cp-fee-inline > .cp-mode-pill-group {
    flex: 0 0 auto;
}

.cp-create-form-card .cp-fee-inline .cp-fee-inputs {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.cp-create-form-card .cp-fee-inline .cp-currency-control {
    min-width: 0;
}

.cp-create-form-card .cp-fee-inline .cp-currency-control input {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .cp-create-form-card .cp-field.cp-col-4 {
        grid-column: span 12;
    }
}

/* Trail / Event create/edit — collapsible sections inside the details card */
.cp-trail-form-sections .cp-user-group,
.cp-event-form-sections .cp-user-group {
    margin-bottom: 0.75rem !important;
}

.cp-trail-form-sections .cp-user-group:last-child,
.cp-event-form-sections .cp-user-group:last-child {
    margin-bottom: 0 !important;
}

.cp-trail-form-sections.cp-create-form-card--trail .cp-user-group__toggle,
.cp-event-form-sections.cp-create-form-card--event .cp-user-group__toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.cp-trail-form-sections.cp-create-form-card--trail .cp-user-group__title,
.cp-event-form-sections.cp-create-form-card--event .cp-user-group__title {
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.cp-trail-form-sections.cp-create-form-card--trail .cp-user-group__toggle .fas,
.cp-event-form-sections.cp-create-form-card--event .cp-user-group__toggle .fas {
    font-size: 0.85em;
}

.cp-trail-form-sections.cp-create-form-card--trail .cp-user-group__chevron,
.cp-event-form-sections.cp-create-form-card--event .cp-user-group__chevron {
    font-size: 0.75rem;
}

.cp-create-form-card--trail .cp-trail-form-sections .cp-user-group__content,
.cp-create-form-card--event .cp-event-form-sections .cp-user-group__content {
    font-size: 0.875rem;
}

/* Social Links — icon + site name + URL on one row */
.cp-social-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.cp-social-link-row__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 8.5rem;
    min-width: 0;
}

.cp-social-link-row__label .form-label {
    white-space: nowrap;
}

.cp-social-link-row__input {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .cp-social-link-row__label {
        flex-basis: 6.75rem;
    }
}

/* Trail forms — compact zoom level input (override mobile full-width form-control) */
.cp-create-form-card--trail .cp-loc-map-zoom-level {
    flex: 0 0 auto !important;
    width: calc(3ch + 1.35rem) !important;
    min-width: calc(3ch + 1.35rem) !important;
    max-width: calc(3ch + 1.35rem) !important;
}

.cp-create-form-card--trail .cp-loc-field-zoom-wrap {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

/* Trail route list — insert pin between waypoints */
.cp-trail-wp-insert-between {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: -0.15rem 0 0.1rem;
    padding: 0;
    line-height: 1;
}

.cp-trail-wp-insert-between .wp-insert-after-btn {
    border: none;
    background: transparent;
    color: var(--bs-info);
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    min-width: 0;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}

.cp-trail-wp-insert-between .wp-insert-after-btn:hover,
.cp-trail-wp-insert-between .wp-insert-after-btn:focus {
    opacity: 1;
    color: var(--bs-info);
    background: transparent;
    box-shadow: none;
    outline: none;
}

/* Trail create/edit — mobile column layout (<768px) */
@media (max-width: 767.98px) {
    .cp-create-form-card--trail #load-gpx-route-btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-edit-form-label,
    .cp-create-form-card--trail .cp-edit-form-list .cp-edit-form-control {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100% !important;
    }

    .cp-create-form-card--trail .cp-edit-form-list .form-control,
    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-field-row,
    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-address-row,
    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-address-line,
    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-coords-block,
    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-actions-row {
        width: 100%;
        max-width: 100%;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-map-zoom-level {
        width: calc(3ch + 1.35rem) !important;
        min-width: calc(3ch + 1.35rem) !important;
        max-width: calc(3ch + 1.35rem) !important;
        flex: 0 0 auto !important;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-field-zoom-wrap {
        flex: 0 0 auto;
        width: auto;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-loc-field-lookup-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-location-mode-group {
        display: flex;
        width: 100% !important;
        inline-size: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap;
        overflow-x: visible;
    }

    .cp-create-form-card--trail .cp-edit-form-list .cp-location-mode-group > .btn-check + .btn,
    .cp-create-form-card--trail .cp-edit-form-list .cp-location-mode-group > .btn-check + label.btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0;
    }

    .cp-create-form-card--trail .cp-tag-picker-summary {
        width: 100%;
    }

    .cp-create-form-card--trail .cp-tag-picker-trigger {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------- */
/* QL create photo slots (Events, Trails, Marketplace)                      */
/* ---------------------------------------------------------------------- */

:root {
    /* Match .cp-create-preview / .cp-card .cp-card-img-wrap cover band */
    --cp-ql-photo-slot-aspect-ratio: 3.5 / 2;
}

.cp-ql-photo-grid-wrap {
    position: relative;
    border-radius: 0.5rem;
    transition: box-shadow 0.15s ease, outline-color 0.15s ease;
}

.cp-ql-photo-grid-wrap--dragover {
    outline: 2px dashed var(--bs-primary);
    outline-offset: 4px;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.18);
}

.cp-ql-photo-processing {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(8, 14, 24, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: all;
}

.cp-ql-photo-processing.d-none {
    display: none !important;
}

.cp-ql-photo-processing__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.65rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #1f2937);
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.12));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    max-width: 100%;
    text-align: center;
}

[data-cp-theme="dark"] .cp-ql-photo-processing__panel,
[data-mdb-theme="dark"] .cp-ql-photo-processing__panel {
    background: #1e2a3a;
    color: #e8eef7;
    border-color: rgba(255, 255, 255, 0.12);
}

.cp-ql-photo-processing__label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.cp-ql-photo-slot.is-processing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    border-radius: 0.4rem;
    background: rgba(8, 14, 24, 0.42);
    pointer-events: none;
}

.cp-ql-photo-slot.is-processing .cp-ql-photo-slot__processing,
.ls-slot.is-processing .cp-ql-photo-slot__processing {
    opacity: 1;
}

.cp-ql-photo-slot__processing,
.ls-slot .cp-ql-photo-slot__processing {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cp-ql-photo-grid,
.ls-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    /* 8 slots → 4 across × 2 down; slot width tracks container, height from aspect-ratio */
}

.cp-ql-photo-slot,
.ls-slot {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: var(--cp-ql-photo-slot-aspect-ratio, 3.5 / 2);
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px dashed rgba(128, 128, 128, 0.35);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-mdb-theme="dark"] .cp-ql-photo-slot,
[data-mdb-theme="dark"] .ls-slot,
[data-cp-theme="dark"] .cp-ql-photo-slot,
[data-cp-theme="dark"] .ls-slot {
    background: rgba(255, 255, 255, 0.04);
}

.cp-ql-photo-slot:hover,
.ls-slot:hover {
    border-color: #3b71ca;
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.18);
}

.cp-ql-photo-slot.cp-ql-photo-slot--disabled,
.cp-ql-photo-slot.cp-ql-photo-slot--disabled:hover {
    cursor: wait;
    pointer-events: none;
    opacity: 0.92;
}

/* Children can still receive clicks while the slot is locked for batch processing. */
.cp-ql-photo-slot.cp-ql-photo-slot--disabled .cp-ql-photo-slot__remove,
.cp-ql-photo-slot.cp-ql-photo-slot--disabled .ls-slot-remove {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    z-index: 10;
}

.cp-ql-photo-slot.has-photo,
.ls-slot.has-photo {
    border-style: solid;
    border-color: transparent;
}

.cp-ql-photo-slot__img,
.ls-slot-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.4rem;
    pointer-events: none;
}

.cp-ql-photo-slot__ph,
.ls-slot-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #aaa;
    font-size: 0.72rem;
    pointer-events: none;
    text-align: center;
    padding: 0.25rem;
}

.cp-ql-photo-slot__ph i,
.ls-slot-ph i {
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}

.cp-ql-photo-slot__required,
.ls-slot-ph .ls-required-badge {
    position: absolute;
    top: 4px;
    left: 5px;
    z-index: 4;
    font-size: 0.6rem;
    font-weight: 700;
    background: #dc3545;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.4;
}

.cp-ql-photo-slot__gps,
.ls-slot-gps {
    position: absolute;
    top: 2px;
    left: 3px;
    z-index: 6;
    pointer-events: auto;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.cp-ql-photo-slot__gps-pin,
.ls-slot-gps .cp-ql-photo-slot__gps-pin {
    display: block;
    width: auto;
    height: 27px;
    pointer-events: none;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.cp-ql-photo-slot__gps:hover .cp-ql-photo-slot__gps-pin,
.ls-slot-gps:hover .cp-ql-photo-slot__gps-pin {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.cp-ql-photo-slot.has-photo.has-gps .cp-ql-photo-slot__gps,
.ls-slot.has-photo.has-gps .ls-slot-gps {
    opacity: 1;
}

.cp-ql-photo-slot__remove,
.ls-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 9;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.cp-ql-photo-slot.has-photo .cp-ql-photo-slot__remove,
.ls-slot.has-photo .ls-slot-remove {
    opacity: 1;
}

.cp-ql-photo-slot.has-photo:hover .cp-ql-photo-slot__remove,
.ls-slot.has-photo:hover .ls-slot-remove {
    opacity: 1;
}

.ls-slot-reorder-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 9;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    border: none;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: element;
}

.ls-slot-reorder-handle i {
    pointer-events: none;
}

.ls-slot-reorder-handle:active {
    cursor: grabbing;
}

.ls-slot.has-photo .ls-slot-reorder-handle {
    display: inline-flex;
}

.ls-slot--dragging {
    opacity: 0.55;
}

.ls-slot--drag-over {
    box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.6) inset;
}

.cp-ql-photo-slot__num,
.ls-slot-num {
    position: absolute;
    bottom: 4px;
    right: 5px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.cp-ql-photo-slot.has-photo .cp-ql-photo-slot__num,
.ls-slot.has-photo .ls-slot-num {
    display: none;
}

.cp-ql-photo-slot.has-photo .cp-ql-photo-slot__index,
.ls-slot.has-photo .ls-slot-index {
    display: none !important;
}

.cp-ql-photo-slot__index,
.ls-slot-index {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.85);
}

.cp-ql-photo-slot:not(.has-photo) .cp-ql-photo-slot__index,
.ls-slot:not(.has-photo) .ls-slot-index {
    display: none !important;
}

/* Photo GPS location replace confirm */
.cp-photo-gps-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 14, 24, 0.52);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cp-photo-gps-confirm-modal {
    width: 100%;
    max-width: 420px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #1f2937);
    border-radius: 0.85rem;
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.12));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

[data-cp-theme="dark"] .cp-photo-gps-confirm-modal,
[data-mdb-theme="dark"] .cp-photo-gps-confirm-modal {
    background: #1e2a3a;
    color: #e8eef7;
    border-color: rgba(255, 255, 255, 0.12);
}

.cp-photo-gps-confirm-body {
    padding: 1.25rem 1.25rem 1.1rem;
}

.cp-photo-gps-confirm-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 135, 84, 0.16);
    color: #198754;
    font-size: 1rem;
}

[data-cp-theme="dark"] .cp-photo-gps-confirm-icon,
[data-mdb-theme="dark"] .cp-photo-gps-confirm-icon {
    background: rgba(94, 209, 156, 0.18);
    color: #86efac;
}

.cp-create-form-card--event.cp-ql-photo-card .card-header,
.cp-ql-photo-card.cp-create-form-card--event > .card-header {
    background: rgba(59, 113, 202, 0.12) !important;
}

.cp-create-form-card--trail.cp-ql-photo-card .card-header,
.cp-ql-photo-card.cp-create-form-card--trail > .card-header {
    background: rgba(25, 135, 84, 0.12) !important;
}

[data-cp-theme="dark"] .cp-create-form-card--event.cp-ql-photo-card .card-header,
[data-mdb-theme="dark"] .cp-create-form-card--event.cp-ql-photo-card .card-header {
    background: rgba(147, 197, 253, 0.16) !important;
    color: #eaf2ff !important;
}

[data-cp-theme="dark"] .cp-create-form-card--trail.cp-ql-photo-card .card-header,
[data-mdb-theme="dark"] .cp-create-form-card--trail.cp-ql-photo-card .card-header {
    background: rgba(94, 209, 156, 0.18) !important;
    color: #eaf2ff !important;
}

.cp-ql-photo-batch-status {
    font-size: 0.8125rem;
    line-height: 1.3;
}

[data-cp-theme="dark"] .cp-ql-photo-batch-status,
[data-mdb-theme="dark"] .cp-ql-photo-batch-status {
    color: var(--bs-warning-text-emphasis, #ffda6a);
}

/* ---------------------------------------------------------------------- */
/* Live field requirement checklists (register password, handle, etc.)     */
/* ---------------------------------------------------------------------- */

.cp-requirement-list {
    display: grid;
    gap: 0.2rem;
}

.cp-requirement-list__item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--bs-secondary-color);
}

.cp-requirement-list__icon {
    width: 0.9rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
}

.cp-requirement-list__item--pending .cp-requirement-list__icon {
    color: var(--bs-secondary-color);
}

.cp-requirement-list__item--pending .cp-requirement-list__dot {
    font-size: 0.35rem;
    vertical-align: middle;
}

.cp-requirement-list__item--met {
    color: var(--cp-valid-color);
}

.cp-requirement-list__item--met .cp-requirement-list__icon {
    color: var(--cp-valid-color);
}

.cp-requirement-list__item--unmet {
    color: var(--cp-invalid-color);
}

.cp-requirement-list__item--unmet .cp-requirement-list__icon {
    color: var(--cp-invalid-color);
}

.cp-field-req-trigger {
    line-height: 1;
    vertical-align: middle;
    text-decoration: none !important;
}

.cp-field-req-trigger .fa-circle-info {
    font-size: 0.95rem;
}

.cp-password-input .cp-password-input__toggle {
    cursor: pointer;
    min-width: var(--cp-control-height, 42px);
    padding-inline: 0.75rem;
    color: var(--bs-secondary-color);
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

.cp-password-input .cp-password-input__toggle:hover,
.cp-password-input .cp-password-input__toggle:focus-visible {
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg);
}

.cp-password-input .cp-password-input__toggle:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: -2px;
    z-index: 3;
}

[data-cp-theme="dark"] .cp-password-input .cp-password-input__toggle,
[data-mdb-theme="dark"] .cp-password-input .cp-password-input__toggle {
    color: var(--bs-secondary-color);
    background-color: var(--bs-body-bg);
}

