/* Pumpkin Spice Theme - Caramel and cream, steaming mugs, drifting cinnamon and star anise
 *
 * All colors defined as CSS variables at the top: change the palette in one place.
 */

/* ============================================================
   Theme Palette
   To restyle: change values here only: everything below reads from these
   ============================================================ */
.theme-pumpkin-spice {
    --theme-primary:       #b85a2a;   /* main color: buttons, borders, checked states */
    --theme-primary-mid:   #9a4a22;   /* card headings, links, gradients */
    --theme-primary-light: #e0914f;   /* hover borders, gradient ends */
    --theme-primary-dark:  #53321d;   /* navbar, labels, deep accents */
    --theme-accent:        #d9a066;   /* card borders, highlights */
    --theme-accent-light:  #ecc38f;   /* lighter accent: hover, "signup" text */
    --theme-bg:            #fffcf7;   /* card backgrounds */
    --theme-text:          #3a241a;   /* body text */
    --theme-text-dark:     #53321d;   /* headings, labels */
    --theme-text-muted:    #6e5646;   /* muted text: 6.9:1 on #fffcf7 */
    --theme-gradient:      radial-gradient(ellipse 55% 35% at 82% 10%, rgba(255, 244, 226, 0.95) 0%, transparent 70%), radial-gradient(ellipse 75% 40% at 8% 104%, rgba(165, 78, 36, 0.5) 0%, transparent 70%), radial-gradient(ellipse 45% 30% at 88% 92%, rgba(255, 217, 163, 0.45) 0%, transparent 70%), linear-gradient(180deg, #f6e6cf 0%, #efd2ac 30%, #e8bf8c 58%, #c98a52 85%, #b8693a 100%);
    --theme-btn-gradient:  linear-gradient(135deg, #7a3f1f 0%, #b85a2a 55%, #e0914f 100%);
    --theme-radius-card:   16px;
    --theme-radius-btn:    12px;
    --theme-radius-input:  10px;

    /* Bridge to global utilities: makes .text-primary use the theme color */
    --primary-color: #b85a2a;
}

/* ---- Background ---- */
/* .theme-pumpkin-spice gets the gradient without fixed attachment (applied to body or form-preview
   host element). body.theme-pumpkin-spice adds fixed attachment + isolation: isolate separately
   so z-index:-1 decorations appear above the gradient but behind page content. */
.theme-pumpkin-spice {
    background: var(--theme-gradient) !important;
    color: var(--theme-text) !important;
    min-height: 100vh !important;
    position: relative;
}

/* body gets fixed attachment + stacking context for floating decorations */
body.theme-pumpkin-spice {
    background: var(--theme-gradient) !important;
    background-attachment: fixed !important;
    isolation: isolate; /* z-index:-1 decorations appear above gradient, behind content */
}

/* Embedded form context only (theme-pumpkin-spice on form-preview itself, no body parent).
   Do NOT add body.theme-pumpkin-spice .form-preview here: body already has the gradient,
   and a second fixed-attachment background on a child element causes color mismatch. */
.form-preview.theme-pumpkin-spice {
    background: var(--theme-gradient) !important;
    background-attachment: fixed !important;
}

/* Mobile fix - prevent janky scrolling and overscroll white flash */
@media (max-width: 768px) {
    .theme-pumpkin-spice,
    body.theme-pumpkin-spice {
        background-attachment: scroll !important;
    }

    /* Prevent textareas and comment boxes from overflowing their cards on narrow screens */
    .theme-pumpkin-spice textarea,
    .theme-pumpkin-spice .form-control {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Container for the drifting leaves and spices (static/js/themes/fall-drift.js).
   z-index: -1 keeps decorations above body's gradient but behind all page content.
   isolation: isolate on body.theme-pumpkin-spice creates the stacking context that makes this work. */
#fall-drift-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* ========================================
   CORE STRUCTURE
   ======================================== */

/* Transparent containers */
.theme-pumpkin-spice .container,
.theme-pumpkin-spice .container-narrow,
.theme-pumpkin-spice main,
.theme-pumpkin-spice .py-2,
.theme-pumpkin-spice .py-md-5,
.theme-pumpkin-spice .py-4:not(.footer) {
    background: transparent !important;
}

/* Cards with a slow warm sheen */
.theme-pumpkin-spice .card {
    background: var(--theme-bg) !important;
    border: 3px solid var(--theme-accent) !important;
    border-radius: var(--theme-radius-card) !important;
    box-shadow: 0 8px 24px rgba(184, 90, 42, 0.4), 0 0 0 1px rgba(236, 195, 143, 0.3) !important;
    position: relative;
    overflow: hidden;
}

/* Slow sheen across the card */
.theme-pumpkin-spice .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(236, 195, 143, 0.15) 50%, transparent 70%);
    animation: pumpkin-spice-shimmer 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pumpkin-spice-shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.theme-pumpkin-spice .card-body {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

/* Page headings (on gradient background) */
.theme-pumpkin-spice h1,
.theme-pumpkin-spice h2,
.theme-pumpkin-spice h3 {
    color: #53321d !important;
    text-shadow:
        0 1px 2px rgba(255, 248, 238, 0.9),
        0 0 18px rgba(255, 244, 226, 0.7);
    font-weight: 700 !important;
}

/* Card headings (on card background) */
.theme-pumpkin-spice .card .card-title,
.theme-pumpkin-spice .card h1,
.theme-pumpkin-spice .card h2,
.theme-pumpkin-spice .card h3,
.theme-pumpkin-spice .card h4 {
    color: var(--theme-primary-mid) !important;
    text-shadow: 0 1px 2px rgba(236, 195, 143, 0.3) !important;
    font-weight: 700 !important;
}

/* Body text */
.theme-pumpkin-spice p,
.theme-pumpkin-spice .card-text,
.theme-pumpkin-spice .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Muted text - 5.2:1 on #fffef0 */
.theme-pumpkin-spice .text-muted {
    color: var(--theme-text-muted) !important;
}

/* Form labels */
.theme-pumpkin-spice .form-label {
    color: var(--theme-primary-dark) !important;
    font-weight: 600 !important;
}

/* ========================================
   FORM INPUTS
   ======================================== */

/* All inputs */
.theme-pumpkin-spice .form-control,
.theme-pumpkin-spice .form-select,
.theme-pumpkin-spice textarea {
    background: #ffffff !important;
    border: 2px solid var(--theme-primary) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-input) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    transition: all 0.3s ease !important;
}

/* Date/time inputs: prevent overflow */
.theme-pumpkin-spice .date-row-input,
.theme-pumpkin-spice .time-row-input,
.theme-pumpkin-spice .timezone-row-select,
.theme-pumpkin-spice .duration-row-select,
.theme-pumpkin-spice input[type="date"],
.theme-pumpkin-spice input[type="time"],
.theme-pumpkin-spice #futurePeriodType,
.theme-pumpkin-spice #hideOptionLeadHoursContainer {
    font-size: 14px !important;
}

/* Compact inline selects need a smaller border-radius to avoid clipping text/arrow */
.theme-pumpkin-spice #globalTimezone {
    max-width: 250px !important;
}

/* Also override width: 100% from .form-select rule above */
.theme-pumpkin-spice #futurePeriodType {
    border-radius: 6px !important;
    width: auto !important;
}
.theme-pumpkin-spice #hideOptionLeadHoursContainer {
    border-radius: 6px !important;
    width: 160px !important;
}

/* Focus state with gold glow */
.theme-pumpkin-spice .form-control:focus,
.theme-pumpkin-spice .form-select:focus,
.theme-pumpkin-spice textarea:focus {
    border-color: var(--theme-accent) !important;
    box-shadow:
        0 0 0 3px rgba(217, 160, 102, 0.2),
        0 0 15px rgba(236, 195, 143, 0.4) !important;
    background-color: #ffffff !important;
    color: var(--theme-text) !important;
    outline: none !important;
}

/* Placeholder text */
.theme-pumpkin-spice ::placeholder {
    color: #a8998c !important;
    opacity: 0.8 !important;
}

.theme-pumpkin-spice .form-control::placeholder,
.theme-pumpkin-spice textarea::placeholder {
    color: #a8998c !important;
    opacity: 0.8 !important;
}

/* ========================================
   CHECKBOXES & RADIO BUTTONS
   ======================================== */

/* Base style: background-color NOT background shorthand (preserves toggle thumb) */
.theme-pumpkin-spice .form-check-input {
    background-color: #ffffff !important;
    border: 3px solid var(--theme-primary) !important;
    width: 22px !important;
    height: 22px !important;
    transition: all 0.3s ease !important;
}

/* CHECKBOX - SQUARE */
.theme-pumpkin-spice .form-check-input[type="checkbox"] {
    border-radius: 5px !important;
}

/* RADIO - CIRCLE */
.theme-pumpkin-spice .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

/* Checked state: background-color only, preserves Bootstrap's checkmark image */
.theme-pumpkin-spice .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-accent) !important;
}

/* Radio checked: solid fill, suppress inner dot image */
.theme-pumpkin-spice .form-check-input[type="radio"]:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-accent) !important;
    background-image: none !important;
}

/* Toggle switches: white thumb via CSS variable */
.theme-pumpkin-spice .form-switch .form-check-input {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
    background-color: rgba(184, 90, 42, 0.35) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: 2em !important;
    width: 2em !important;
    height: 1em !important;
}

.theme-pumpkin-spice .form-switch .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

/* Label text */
.theme-pumpkin-spice .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Checked label: primary color */
.theme-pumpkin-spice .form-check-input:checked + label,
.theme-pumpkin-spice .form-check-input:checked + .form-check-label {
    color: var(--theme-primary-mid) !important;
    font-weight: 600 !important;
}

/* Required toggle in additional questions: theme primary instead of the global color */
.theme-pumpkin-spice .additional-question-settings .form-check-input:checked + .form-check-label {
    color: var(--theme-primary-mid) !important;
    font-weight: 600 !important;
}

/* ========================================
   PRIMARY BUTTONS
   ======================================== */

.theme-pumpkin-spice .btn-primary,
.theme-pumpkin-spice button[type="submit"],
.theme-pumpkin-spice #submitBtn {
    background: var(--theme-btn-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 12px 28px !important;
    box-shadow:
        0 6px 16px rgba(217, 160, 102, 0.5),
        0 0 20px rgba(236, 195, 143, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Soft light sweep across the button on hover */
.theme-pumpkin-spice .btn-primary::before,
.theme-pumpkin-spice button[type="submit"]::before,
.theme-pumpkin-spice #submitBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 214, 0.28), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.theme-pumpkin-spice .btn-primary:hover::before,
.theme-pumpkin-spice button[type="submit"]:hover::before,
.theme-pumpkin-spice #submitBtn:hover::before {
    left: 100%;
}

/* Icons inside primary buttons must be white (overrides global .bi-check-circle gold rule) */
.theme-pumpkin-spice .btn-primary .bi,
.theme-pumpkin-spice .btn-primary i,
.theme-pumpkin-spice button[type="submit"] .bi,
.theme-pumpkin-spice button[type="submit"] i,
.theme-pumpkin-spice #submitBtn .bi,
.theme-pumpkin-spice #submitBtn i {
    color: #ffffff !important;
}

/* Hover: theme color instead of the default teal */
.theme-pumpkin-spice .btn-primary:hover,
.theme-pumpkin-spice button[type="submit"]:hover,
.theme-pumpkin-spice #submitBtn:hover {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 24px rgba(184, 90, 42, 0.7),
        0 0 30px rgba(184, 90, 42, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px) scale(1.03) !important;
}

/* Active */
.theme-pumpkin-spice .btn-primary:active {
    background: linear-gradient(135deg, #c4622d 0%, #ff7f00 100%) !important;
    transform: translateY(0) scale(0.98) !important;
    box-shadow:
        0 3px 8px rgba(217, 160, 102, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Focus */
.theme-pumpkin-spice .btn-primary:focus {
    outline: 3px solid rgba(217, 160, 102, 0.5) !important;
    outline-offset: 3px;
}

/* ========================================
   OUTLINE BUTTONS
   ======================================== */

.theme-pumpkin-spice .btn-outline-primary {
    background: transparent !important;
    border: 3px solid var(--theme-primary) !important;
    color: var(--theme-primary-mid) !important;
    font-weight: 600 !important;
    border-radius: var(--theme-radius-input) !important;
    transition: all 0.3s ease !important;
}

.theme-pumpkin-spice .btn-outline-primary:hover {
    background: rgba(184, 90, 42, 0.15) !important;
    border-color: var(--theme-primary-light) !important;
    color: var(--theme-primary-light) !important;
    box-shadow: 0 0 15px rgba(184, 90, 42, 0.3) !important;
}

/* Active/Checked state (for toggle buttons) */
.theme-pumpkin-spice .btn-check:checked + .btn-outline-primary,
.theme-pumpkin-spice .btn-outline-primary:active,
.theme-pumpkin-spice .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 100%) !important;
    border-color: var(--theme-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(236, 195, 143, 0.4) !important;
}

/* Icons in active buttons */
.theme-pumpkin-spice .btn-check:checked + .btn-outline-primary .bi,
.theme-pumpkin-spice .btn-outline-primary:active .bi,
.theme-pumpkin-spice .btn-outline-primary.active .bi {
    color: #ffffff !important;
}

/* Hover over checked state: keep the primary fill */
.theme-pumpkin-spice .btn-check:checked + .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 100%) !important;
    color: #ffffff !important;
}

.theme-pumpkin-spice .btn-check:checked + .btn-outline-primary:hover .bi {
    color: #ffffff !important;
}

/* Checked state for outline secondary (e.g. "Hide taken" toggle) */
.theme-pumpkin-spice .btn-check:checked + .btn-outline-secondary,
.theme-pumpkin-spice .btn-outline-secondary:active,
.theme-pumpkin-spice .btn-outline-secondary.active {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 100%) !important;
    border-color: var(--theme-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(236, 195, 143, 0.4) !important;
}

.theme-pumpkin-spice .btn-check:checked + .btn-outline-secondary .bi,
.theme-pumpkin-spice .btn-outline-secondary:active .bi,
.theme-pumpkin-spice .btn-outline-secondary.active .bi {
    color: #ffffff !important;
}

/* Outline secondary */
.theme-pumpkin-spice .btn-outline-secondary {
    color: var(--theme-primary-mid) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-pumpkin-spice .btn-outline-secondary:hover {
    background: var(--theme-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(184, 90, 42, 0.4) !important;
    transform: translateY(-2px);
}

/* Secondary button */
.theme-pumpkin-spice .btn-secondary {
    background: linear-gradient(135deg, var(--theme-primary-mid) 0%, var(--theme-primary-dark) 100%) !important;
    border: 2px solid var(--theme-primary-dark) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    box-shadow: 0 6px 20px rgba(83, 50, 29, 0.4) !important;
    border-radius: var(--theme-radius-btn) !important;
    transition: all 0.3s ease !important;
}

.theme-pumpkin-spice .btn-secondary:hover,
.theme-pumpkin-spice .btn-secondary:active,
.theme-pumpkin-spice .btn-secondary:focus {
    background: linear-gradient(135deg, #3f2416 0%, #53321d 55%, #7a4a30 100%) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 8px 25px rgba(217, 160, 102, 0.4) !important;
    color: #ffffff !important;
}

/* Outline danger: maps to the accent */
.theme-pumpkin-spice .btn-outline-danger {
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    border-width: 2px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.theme-pumpkin-spice .btn-outline-danger:hover {
    background: var(--theme-accent) !important;
    color: #3a241a !important;
    box-shadow: 0 4px 15px rgba(217, 160, 102, 0.3) !important;
    transform: translateY(-1px);
}

/* btn-link (collapse/expand buttons) */
.theme-pumpkin-spice .btn-link {
    color: var(--theme-text-dark) !important;
    text-decoration: none !important;
    background: rgba(255, 252, 247, 0.95) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
}

.theme-pumpkin-spice .btn-link:hover {
    color: var(--theme-primary-mid) !important;
    background: var(--theme-bg) !important;
    border-color: var(--theme-primary-light) !important;
    transform: translateY(-2px);
}

/* Remove double-circle effect on help question icons */
.theme-pumpkin-spice .help-question-trigger,
.theme-pumpkin-spice .comment-toggle-btn,
.theme-pumpkin-spice .btn-link:has(.bi-question-circle-fill) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.theme-pumpkin-spice .bi-question-circle,
.theme-pumpkin-spice .bi-question-circle-fill {
    text-shadow: none !important;
}

.theme-pumpkin-spice button[data-bs-toggle="collapse"] {
    background: rgba(255, 252, 247, 0.95) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    color: var(--theme-text-dark) !important;
    font-weight: 600 !important;
}

.theme-pumpkin-spice button[data-bs-toggle="collapse"]:hover {
    background: var(--theme-bg) !important;
    border-color: var(--theme-primary-light) !important;
    color: var(--theme-primary-mid) !important;
    transform: translateY(-2px);
}

.theme-pumpkin-spice .btn-link .text-info,
.theme-pumpkin-spice button[data-bs-toggle="collapse"] .text-info {
    color: var(--theme-primary-mid) !important;
}

.theme-pumpkin-spice .btn-link .text-dark,
.theme-pumpkin-spice button[data-bs-toggle="collapse"] .text-dark {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

.theme-pumpkin-spice .btn-link .text-muted,
.theme-pumpkin-spice button[data-bs-toggle="collapse"] .text-muted {
    color: var(--theme-primary) !important;
}

.theme-pumpkin-spice .btn-link h6,
.theme-pumpkin-spice button[data-bs-toggle="collapse"] h6 {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

/* Small outline buttons (form_preview) */
.theme-pumpkin-spice .btn-outline-primary.btn-sm {
    background: #ffffff !important;
    border: 2px solid var(--theme-primary) !important;
    color: var(--theme-primary-mid) !important;
}

.theme-pumpkin-spice .btn-outline-primary.btn-sm:hover {
    background: #fbefe2 !important;
    border-color: var(--theme-primary-light) !important;
    color: var(--theme-primary-mid) !important;
}

/* ========================================
   LIST ITEMS (Options)
   ======================================== */

.theme-pumpkin-spice .list-group-item {
    background: #ffffff !important;
    border: 3px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-card) !important;
    color: var(--theme-text) !important;
    margin-bottom: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(184, 90, 42, 0.2) !important;
    position: relative;
    padding-left: 24px !important;
}

/* Accent bar on the left edge */
.theme-pumpkin-spice .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, var(--theme-accent) 0%, #c4622d 50%, var(--theme-accent) 100%);
    border-radius: 12px 0 0 12px;
    box-shadow: 0 0 10px rgba(236, 195, 143, 0.5);
}

/* Hover */
.theme-pumpkin-spice .list-group-item:hover {
    background: #fbefe2 !important;
    box-shadow:
        0 6px 20px rgba(184, 90, 42, 0.3),
        0 0 20px rgba(236, 195, 143, 0.2) !important;
    transform: translateY(-3px);
    border-color: var(--theme-primary-light) !important;
}

/* ========================================
   DISABLED/TAKEN OPTIONS
   ======================================== */

/* 1. Disabled label text */
.theme-pumpkin-spice .list-group-item input:disabled + label {
    color: #a8998c !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

/* 2. "Taken by" text */
.theme-pumpkin-spice .list-group-item input:disabled ~ small {
    color: var(--theme-primary-mid) !important; /* accent is too light for text on white */
    font-weight: 600 !important;
}

/* 3. Disabled container */
.theme-pumpkin-spice .list-group-item:has(input:disabled) {
    background: rgba(184, 90, 42, 0.08) !important;
    border-color: #a8998c !important;
    opacity: 0.7 !important;
}

/* 4. Prevent hover on disabled */
.theme-pumpkin-spice .list-group-item:has(input:disabled):hover {
    cursor: not-allowed !important;
    transform: none !important;
    background: rgba(184, 90, 42, 0.08) !important;
}

/* ========================================
   NAVBAR
   ======================================== */

.theme-pumpkin-spice .navbar {
    background: linear-gradient(135deg, #3f2416 0%, #53321d 55%, #7a4a30 100%) !important;
    border-bottom: 4px solid var(--theme-accent) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 -2px 0 rgba(236, 195, 143, 0.3) inset !important;
}

.theme-pumpkin-spice .navbar-brand,
.theme-pumpkin-spice .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(236, 195, 143, 0.3);
}

.theme-pumpkin-spice .nav-link:hover {
    color: var(--theme-accent) !important;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(236, 195, 143, 0.6);
}

/* Logo: tinted to match the "signup" text (brand-text-white); same filter on hover */
.theme-pumpkin-spice .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(71%) sepia(91%) saturate(159%) hue-rotate(351deg) brightness(96%) contrast(92%) !important;
    transition: filter 0.3s ease !important;
}

.theme-pumpkin-spice .navbar-brand:hover img {
    filter: brightness(0) saturate(100%) invert(71%) sepia(91%) saturate(159%) hue-rotate(351deg) brightness(96%) contrast(92%) !important;
}

/* "grasshopper" text: light gradient on the dark navbar */
.theme-pumpkin-spice .brand-text-primary {
    background: linear-gradient(135deg, #fff6e8 0%, #f6dcb4 55%, #ecc38f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    position: relative;
    display: inline-block;
}

.theme-pumpkin-spice .navbar-brand:hover .brand-text-primary {
    background: linear-gradient(135deg, #ecc38f 0%, #f6dcb4 45%, #fff6e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* "signup" text: matches the logo tint */
.theme-pumpkin-spice .brand-text-white {
    color: #ecc38f !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile hamburger */
.theme-pumpkin-spice .navbar-toggler {
    border-color: var(--theme-accent) !important;
}

.theme-pumpkin-spice .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C 255%2C 255%2C 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.theme-pumpkin-spice .nav-auth-icon {
    color: rgba(255, 255, 255, 1) !important;
}

/* ---- Offcanvas (mobile nav) ---- */
.theme-pumpkin-spice .offcanvas {
    background: linear-gradient(135deg, #3f2416 0%, #53321d 55%, #7a4a30 100%) !important;
    border-left: 3px solid var(--theme-accent) !important;
    box-shadow: -4px 0 15px rgba(236, 195, 143, 0.3) !important;
}

.theme-pumpkin-spice .offcanvas-header {
    border-bottom: 2px solid var(--theme-accent) !important;
}

/* White X only in the dark mobile menu: unscoped, it also turned the X in white
   pop-ups white-on-white (Brent, 2026-10-11) */
.theme-pumpkin-spice .offcanvas .btn-close {
    filter: invert(1) !important;
    opacity: 0.9 !important;
}

.theme-pumpkin-spice .offcanvas .btn-close:hover {
    opacity: 1 !important;
}

.theme-pumpkin-spice .mobile-nav-section .btn {
    background: linear-gradient(45deg, var(--theme-accent), var(--theme-accent-light)) !important;
    border: 2px solid var(--theme-primary) !important;
    color: #3a241a !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(217, 160, 102, 0.4) !important;
}

.theme-pumpkin-spice .mobile-nav-section .btn:hover {
    background: linear-gradient(45deg, var(--theme-accent-light), var(--theme-accent)) !important;
    box-shadow: 0 8px 25px rgba(217, 160, 102, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.theme-pumpkin-spice .mobile-nav-header {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.theme-pumpkin-spice .mobile-nav-item {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.theme-pumpkin-spice .mobile-nav-item:hover {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 8px rgba(217, 160, 102, 0.6) !important;
}

.theme-pumpkin-spice .mobile-nav-item i {
    color: var(--theme-accent) !important;
}

/* ========================================
   MODALS
   ======================================== */

.theme-pumpkin-spice .modal-backdrop {
    display: none;
}

.theme-pumpkin-spice .modal-content {
    background: var(--theme-bg) !important;
    border: 3px solid var(--theme-accent) !important;
    border-radius: var(--theme-radius-card) !important;
    box-shadow:
        0 16px 48px rgba(184, 90, 42, 0.4),
        0 0 0 1px rgba(236, 195, 143, 0.3) !important;
}

.theme-pumpkin-spice .modal-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}

.theme-pumpkin-spice .modal-title {
    color: var(--theme-primary-mid) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.theme-pumpkin-spice .modal-body {
    background: transparent !important;
    color: var(--theme-text) !important;
    padding: 1rem 1.5rem !important;
}

.theme-pumpkin-spice .modal-footer {
    background: transparent !important;
    border-top: none !important;
    padding: 0.5rem 1.5rem 1.5rem !important;
}

/* ========================================
   SPREADSHEET MODAL: Theme Opt-Out
   ======================================== */

/* Reset everything to dark-on-white */
.theme-pumpkin-spice #ssModal *,
.theme-pumpkin-spice #ssModal h1,
.theme-pumpkin-spice #ssModal h2,
.theme-pumpkin-spice #ssModal h3,
.theme-pumpkin-spice #ssModal h4,
.theme-pumpkin-spice #ssModal h5,
.theme-pumpkin-spice #ssModal h6,
.theme-pumpkin-spice #ssModal p,
.theme-pumpkin-spice #ssModal small,
.theme-pumpkin-spice #ssModal .text-muted {
    color: #212529 !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Icons inside buttons inherit button color */
.theme-pumpkin-spice #ssModal .btn i,
.theme-pumpkin-spice #ssModal .btn .bi {
    color: inherit !important;
}

/* Restore danger red for X delete row buttons */
.theme-pumpkin-spice #ssModal .text-danger,
.theme-pumpkin-spice #ssModal .text-danger i,
.theme-pumpkin-spice #ssModal .text-danger .bi {
    color: #dc3545 !important;
}

/* Strip button chrome from X delete buttons */
.theme-pumpkin-spice #ssModal .spreadsheet-delete-row {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Modal shell */
.theme-pumpkin-spice #ssModal .modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
}

.theme-pumpkin-spice #ssModal .modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem !important;
}

.theme-pumpkin-spice #ssModal .modal-body {
    background-color: transparent !important;
    padding: 1rem !important;
}

.theme-pumpkin-spice #ssModal .modal-footer {
    background-color: transparent !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 0.75rem !important;
}

/* Apply Changes button */
.theme-pumpkin-spice #ssModal .btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 100%) !important;
    border: 1px solid var(--theme-primary) !important;
    color: #ffffff !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: 0 0 8px rgba(184, 90, 42, 0.4) !important;
    transform: none !important;
}

.theme-pumpkin-spice #ssModal .btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 100%) !important;
    box-shadow: 0 0 14px rgba(184, 90, 42, 0.7) !important;
    transform: none !important;
}

/* Add Row button: solid primary fill with white text */
.theme-pumpkin-spice #ssModal .btn-outline-secondary {
    color: #ffffff !important;
    border: 1px solid var(--theme-primary) !important;
    background: var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-pumpkin-spice #ssModal .btn-outline-secondary:hover {
    background: var(--theme-primary-mid) !important;
    border-color: var(--theme-primary-mid) !important;
    box-shadow: 0 0 8px rgba(184, 90, 42, 0.4) !important;
    color: #ffffff !important;
    transform: none !important;
}

/* Cancel button */
.theme-pumpkin-spice #ssModal .btn-outline-danger {
    color: var(--theme-accent) !important;
    border: 1px solid var(--theme-accent) !important;
    background: transparent !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-pumpkin-spice #ssModal .btn-outline-danger:hover {
    background: rgba(217, 160, 102, 0.12) !important;
    box-shadow: 0 0 8px rgba(217, 160, 102, 0.3) !important;
    color: var(--theme-accent) !important;
    transform: none !important;
}

/* Alert inside modal (e.g. paste warning) */
.theme-pumpkin-spice #ssModal .alert {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
    box-shadow: none !important;
}

/* Table inputs */
.theme-pumpkin-spice #ssModal input,
.theme-pumpkin-spice #ssModal .form-control {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
}

/* ========================================
   FORM SECTIONS
   ======================================== */

.theme-pumpkin-spice .form-section-respondent,
.theme-pumpkin-spice .form-section-main-options,
.theme-pumpkin-spice .form-section-additional {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 6px 20px rgba(184, 90, 42, 0.2) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-pumpkin-spice .form-section-header {
    background: linear-gradient(45deg, var(--theme-primary-dark), var(--theme-primary)) !important;
    color: #ffffff !important;
    border-bottom: none !important;
    border-radius: calc(var(--theme-radius-card) - 1px) calc(var(--theme-radius-card) - 1px) 0 0 !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ADDITIONAL QUESTIONS
   ======================================== */

.theme-pumpkin-spice .additional-question-section .card,
.theme-pumpkin-spice .additional-question-item {
    background: rgba(255, 252, 247, 0.98) !important;
    border: 3px solid var(--theme-primary) !important;
    box-shadow: 0 6px 20px rgba(184, 90, 42, 0.2) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-pumpkin-spice .additional-question-section .card-body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

.theme-pumpkin-spice .additional-question-section .form-label {
    color: var(--theme-primary-dark) !important;
    font-weight: 700 !important;
}

.theme-pumpkin-spice .additional-question-section .additional-question-header h6,
.theme-pumpkin-spice .additional-question-section .additional-question-title {
    color: var(--theme-primary-dark) !important;
    font-weight: 700 !important;
}

.theme-pumpkin-spice .additional-question-section .additional-question-body .form-label,
.theme-pumpkin-spice .additional-question-section .additional-question-body .fw-semibold {
    color: var(--theme-primary-dark) !important;
    font-weight: 700 !important;
}

.theme-pumpkin-spice .additional-question-section .additional-question-body .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Fix vertical alignment of larger radio/checkbox inputs everywhere (excludes toggle switches) */
.theme-pumpkin-spice .form-check:not(.form-switch) {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.theme-pumpkin-spice .form-check:not(.form-switch) .form-check-input {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.theme-pumpkin-spice .form-check:not(.form-switch) .form-check-label {
    margin-bottom: 0 !important;
}
/* Preserve inline-block display when Bootstrap d-inline-block is used (e.g. Silent Save checkbox) */
.theme-pumpkin-spice .form-check.d-inline-block:not(.form-switch) {
    display: inline-flex !important;
}

/* ========================================
   OPTION ITEMS (form_preview)
   ======================================== */

.theme-pumpkin-spice .option-item {
    background: rgba(255, 252, 247, 0.9) !important;
    border: 2px solid var(--theme-primary) !important;
    box-shadow: 0 4px 15px rgba(184, 90, 42, 0.2) !important;
    border-radius: var(--theme-radius-input) !important;
}

.theme-pumpkin-spice .option-item:hover {
    box-shadow: 0 6px 20px rgba(184, 90, 42, 0.3) !important;
    transform: translateY(-2px);
    border-color: var(--theme-primary-light) !important;
}

/* ========================================
   ALERTS
   ======================================== */

.theme-pumpkin-spice .alert {
    border-radius: var(--theme-radius-card) !important;
    border-width: 3px !important;
}

.theme-pumpkin-spice .alert-success {
    background: rgba(184, 90, 42, 0.1) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary-dark) !important;
}

/* ========================================
   ICONS & MISC
   ======================================== */

/* Required asterisk */
.theme-pumpkin-spice .required-asterisk {
    color: var(--theme-accent) !important;
    font-weight: bold !important;
}

/* Check circle icon */
.theme-pumpkin-spice .bi-check-circle {
    color: var(--theme-accent) !important;
}

/* Event detail icons */
.theme-pumpkin-spice .bi-calendar-event-fill,
.theme-pumpkin-spice .bi-clock-fill,
.theme-pumpkin-spice .bi-clock-history,
.theme-pumpkin-spice .bi-geo-alt-fill,
.theme-pumpkin-spice .bi-link-45deg {
    color: var(--theme-primary) !important;
}

/* Badges */
.theme-pumpkin-spice .badge {
    background: linear-gradient(135deg, var(--theme-accent) 0%, #c4622d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(217, 160, 102, 0.4) !important;
}

/* Links */
.theme-pumpkin-spice a {
    color: var(--theme-primary-mid) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-pumpkin-spice a:hover {
    color: #c4622d !important;
    text-decoration: none;
}

/* ========================================
   QUILL EDITOR
   ======================================== */

.theme-pumpkin-spice .ql-toolbar.ql-snow {
    background: #fbefe2 !important;
    border-color: var(--theme-primary) !important;
    border-radius: var(--theme-radius-input) var(--theme-radius-input) 0 0 !important;
}

.theme-pumpkin-spice .ql-container.ql-snow {
    background: #ffffff !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-text) !important;
    border-radius: 0 0 var(--theme-radius-input) var(--theme-radius-input) !important;
}

.theme-pumpkin-spice .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* ========================================
   FOOTER
   ======================================== */

body.theme-pumpkin-spice footer,
.theme-pumpkin-spice footer {
    background: rgba(63, 36, 22, 0.94) !important;
    background-color: rgba(63, 36, 22, 0.94) !important;
    color: #ffffff !important;
    border-top: 4px solid var(--theme-accent) !important;
}

body.theme-pumpkin-spice footer p,
.theme-pumpkin-spice footer p {
    color: #ffffff !important;
    font-weight: 600 !important;
}

body.theme-pumpkin-spice footer a,
.theme-pumpkin-spice footer a,
body.theme-pumpkin-spice footer a *,
.theme-pumpkin-spice footer a * {
    color: var(--theme-accent) !important;
    font-weight: 600 !important;
}

body.theme-pumpkin-spice footer a:hover,
.theme-pumpkin-spice footer a:hover,
body.theme-pumpkin-spice footer a:hover *,
.theme-pumpkin-spice footer a:hover * {
    color: var(--theme-accent-light) !important;
    text-shadow: 0 0 8px rgba(217, 160, 102, 0.5) !important;
}

/* ========================================
   PAYMENT BUTTONS
   ======================================== */

.theme-pumpkin-spice a.payment-btn,
.theme-pumpkin-spice .payment-btn {
    color: white !important;
}

.theme-pumpkin-spice a.payment-btn:hover,
.theme-pumpkin-spice .payment-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

/* ---- Smooth transitions ---- */
.theme-pumpkin-spice .btn,
.theme-pumpkin-spice .form-control,
.theme-pumpkin-spice .list-group-item {
    transition: all 0.3s ease !important;
}


/* ========================================
   EDITOR DETAILS (form_preview)
   ======================================== */

/* Checkbox + label inside a wrapper (e.g. "Don't allow selections with time conflicts"):
   the flex gap rule above doesn't reach them, so give the label its own space. */
.theme-pumpkin-spice .form-check .flex-grow-1 > .form-check-input + .form-check-label {
    margin-left: 0.5rem !important;
}

/* Hint above the save button sits on the page background, not a card */
.theme-pumpkin-spice .editor-save-hint {
    display: inline-block;
    color: #fff6e8 !important;
    background: rgba(40, 14, 8, 0.45);
    padding: 4px 12px;
    border-radius: 12px;
    text-shadow: none !important;
}

.theme-pumpkin-spice .editor-save-hint .bi {
    color: inherit !important;
}

/* Help button in the editor action bar (default teal otherwise) */
.theme-pumpkin-spice .editor-action-btn--primary {
    background: var(--theme-btn-gradient) !important;
    border-color: var(--theme-primary) !important;
    color: #ffffff !important;
}

.theme-pumpkin-spice .editor-action-btn--primary .bi {
    color: #ffffff !important;
}

/* Title alignment segmented control (pattern from glory.css): the selected chip was
   a blank white square because its icon inherited white. */
.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] {
    background: rgba(0, 0, 0, 0.06) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn {
    color: var(--theme-primary) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn .bi {
    color: var(--theme-primary) !important;
}

.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn-check:checked + .btn,
.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn-secondary {
    background: #ffffff !important;
    color: var(--theme-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
}

.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn-check:checked + .btn .bi,
.theme-pumpkin-spice .btn-group[aria-label="Title alignment"] .btn-secondary .bi {
    color: var(--theme-primary) !important;
}

/* Editor fine print that sits on the page background, not a card: "You can add N
   more questions" and the save hint were gray/dark on the theme color (contrast
   audit 2026-10-11) */
.theme-pumpkin-spice #additionalQuestionLimitMessage,
.theme-pumpkin-spice small.editor-save-hint {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
