/**
 * Multi-Step Form Styles - COMPLETE UPDATED VERSION
 * Includes: Per-field layout control, radio/checkbox 2-column layout, all fixes
 */

/* Container */
.pct-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================================================
   CRITICAL FIXES - Field visibility and step display
   =================================================================== */

/* Show first step by default, hide others */
.pct-form-step {
    display: none;
}

.pct-form-step:first-of-type {
    display: block;
}

/* When JavaScript adds inline styles, respect them */
.pct-form-step[style*="display: block"],
.pct-form-step[style*="display: inline-block"] {
    display: block !important;
}

.pct-form-step[style*="display: none"] {
    display: none;
}

/* ===================================================================
   FORM STEP STRUCTURE
   =================================================================== */

.pct-form-step {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pct-step-header {
    margin-bottom: 25px;
}

.pct-step-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #333;
}

.pct-step-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===================================================================
   FIELD LAYOUT SYSTEM - Per-Field & Per-Step Control
   =================================================================== */

/* Default: Vertical stacked fields */
.pct-form-fields {
    margin-bottom: 30px;
}

.pct-form-field-wrap {
    margin-bottom: 20px;
}

/* Basic field styling */
.pct-form-field-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pct-required {
    color: #d63638;
}

.pct-form-field-wrap input[type="text"],
.pct-form-field-wrap input[type="email"],
.pct-form-field-wrap input[type="tel"],
.pct-form-field-wrap input[type="url"],
.pct-form-field-wrap input[type="number"],
.pct-form-field-wrap select,
.pct-form-field-wrap textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.pct-form-field-wrap input:focus,
.pct-form-field-wrap select:focus,
.pct-form-field-wrap textarea:focus {
    outline: none;
    border-color: #345AD8;
}

/* Error states */
.pct-form-field-wrap.pct-error input,
.pct-form-field-wrap.pct-error select,
.pct-form-field-wrap.pct-error textarea {
    border-color: #d63638;
}

.pct-error-message {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
}

/* ===================================================================
   STEP-LEVEL HORIZONTAL LAYOUT (2 columns for regular fields)
   =================================================================== */

.pct-form-fields.pct-fields-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pct-form-fields.pct-fields-horizontal .pct-form-field-wrap {
    margin-bottom: 0;
}

/* Last regular field spans full width if odd number (but NOT radio/checkbox groups) */
.pct-form-fields.pct-fields-horizontal .pct-form-field-wrap:last-child:nth-child(odd):not(.pct-field-option-group) {
    grid-column: 1 / -1;
}

/* ===================================================================
   PER-FIELD LAYOUT OVERRIDES
   Individual fields can override the step's layout setting
   =================================================================== */

/* Force field to span full width (vertical) regardless of step setting */
.pct-form-fields.pct-fields-horizontal .pct-form-field-wrap.pct-field-layout-vertical {
    grid-column: 1 / -1;
}

/* Note: Force field to be half width in a vertical step is not commonly needed,
   but if you want side-by-side fields in a vertical step, you can add custom CSS */

/* ===================================================================
   RADIO & CHECKBOX GROUPS - DEDICATED CONTAINERS & 2 VERTICAL COLUMNS
   These always get their own full-width container and display options
   in 2 vertical columns when the step is in horizontal mode
   =================================================================== */

/* Radio/Checkbox groups always span full width in horizontal step layout */
.pct-form-fields.pct-fields-horizontal .pct-field-option-group {
    grid-column: 1 / -1;
}

/* ===================================================================
   BUTTON-STYLE RADIO BUTTONS
   =================================================================== */

/* Radio container - default vertical stacking */
.pct-radio-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pct-radio-option {
    position: relative;
}

/* Hide the actual radio input */
.pct-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Style the label to look like a button */
.pct-radio-option label {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin: 0;
}

/* Checked state */
.pct-radio-option input[type="radio"]:checked + label {
    background: #345AD8;
    color: white;
    border-color: #345AD8;
}

/* Hover state */
.pct-radio-option label:hover {
    border-color: #345AD8;
    background: #f0f6fc;
}

/* Checked + hover state */
.pct-radio-option input[type="radio"]:checked + label:hover {
    background: #3c63e6;
    border-color: #3c63e6;
}

/* 2-column layout for radios */
.pct-radio-container.pct-field-horizontal-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Default styling for checkbox groups (vertical step) */
.pct-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Legacy support for old radio-group class */
.pct-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===================================================================
   RADIO & CHECKBOX ITEMS
   The div.pct-radio-item is the styled clickable element.
   JavaScript delegates clicks on the div to the input inside it.
   =================================================================== */

.pct-radio-item,
.pct-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
    box-sizing: border-box;
    line-height: 1.4;
    color: #333;
    user-select: none;
}

.pct-radio-item:hover,
.pct-checkbox-item:hover {
    background: #f0f6fc;
}

/* Label sits inside div - remove its own padding to avoid double spacing */
.pct-radio-item label,
.pct-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-weight: normal;
    user-select: none;
    color: #333;
    line-height: 1.4;
    pointer-events: none; /* Div handles all clicks via JS */
}

/* Input inside label */
.pct-radio-item input[type="radio"],
.pct-checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    cursor: pointer;
    pointer-events: none; /* Div handles all clicks via JS */
}

/* ===================================================================
   HORIZONTAL STEP: Radio/checkbox options in 2 vertical columns
   =================================================================== */

.pct-form-fields.pct-fields-horizontal .pct-radio-group,
.pct-form-fields.pct-fields-horizontal .pct-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
}

.pct-form-fields.pct-fields-horizontal .pct-radio-item,
.pct-form-fields.pct-fields-horizontal .pct-checkbox-item {
    margin-bottom: 0;
}

/* If odd number of options, last one spans both columns */
.pct-form-fields.pct-fields-horizontal .pct-radio-group .pct-radio-item:last-child:nth-child(odd),
.pct-form-fields.pct-fields-horizontal .pct-checkbox-group .pct-checkbox-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* VERTICAL STEP with per-field horizontal override for radio/checkbox */
.pct-form-fields:not(.pct-fields-horizontal) .pct-field-layout-horizontal .pct-radio-group,
.pct-form-fields:not(.pct-fields-horizontal) .pct-field-layout-horizontal .pct-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
}

.pct-form-fields:not(.pct-fields-horizontal) .pct-field-layout-horizontal .pct-radio-item:last-child:nth-child(odd),
.pct-form-fields:not(.pct-fields-horizontal) .pct-field-layout-horizontal .pct-checkbox-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* ===================================================================
   PROGRESS INDICATOR CONTAINER
   =================================================================== */

.pct-progress-indicator {
    margin-bottom: 40px;
}

/* ===================================================================
   1. NUMBERED CIRCLES STYLE
   =================================================================== */

.pct-progress-numbered_circles .pct-progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 20px;
}

.pct-progress-numbered_circles .pct-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.pct-progress-numbered_circles .pct-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.pct-progress-numbered_circles .pct-step-label {
    font-size: 13px;
    color: #666;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

.pct-progress-numbered_circles .pct-progress-step.active .pct-step-number {
    background: #345AD8;
    color: white;
}

.pct-progress-numbered_circles .pct-progress-step.completed .pct-step-number {
    background: #10b981;
    color: white;
    font-size: 0; /* Hide the number */
}

/* Show checkmark for completed steps only */
.pct-progress-numbered_circles .pct-progress-step.completed .pct-step-number::before {
    content: "✓";
    font-size: 18px;
}

/* Connecting Line - Fixed at circle center */
.pct-progress-numbered_circles .pct-progress-wrapper::before {
    content: "";
    position: absolute;
    top: 20px; /* Center of 40px circle */
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

/* ===================================================================
   2. PROGRESS BAR STYLE
   =================================================================== */

.pct-progress-progress_bar .pct-progress-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.pct-progress-progress_bar .pct-progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.pct-progress-progress_bar .pct-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #345AD8 0%, #10b981 100%);
    transition: width 0.4s ease;
    border-radius: 6px;
    position: relative;
}

.pct-progress-progress_bar .pct-progress-text {
    text-align: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.pct-progress-progress_bar .pct-progress-percentage {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #345AD8;
    font-weight: 600;
}

/* ===================================================================
   3. CHECKMARKS STYLE - Horizontal with Animated Progress Line
   =================================================================== */

.pct-progress-checkmarks .pct-progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.pct-progress-checkmarks .pct-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.pct-progress-checkmarks .pct-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pct-progress-checkmarks .pct-step-number {
    font-size: 18px;
    font-weight: 700;
    color: #999;
}

.pct-progress-checkmarks .pct-checkmark {
    display: none;
    color: white;
    width: 24px;
    height: 24px;
}

.pct-progress-checkmarks .pct-step-label {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.3;
    max-width: 120px;
}

/* Active state - blue */
.pct-progress-checkmarks .pct-progress-step.active .pct-step-icon {
    background: #345AD8;
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.pct-progress-checkmarks .pct-progress-step.active .pct-step-number {
    color: white;
}

.pct-progress-checkmarks .pct-progress-step.active .pct-step-label {
    color: #345AD8;
    font-weight: 600;
}

/* Completed state - green with checkmark */
.pct-progress-checkmarks .pct-progress-step.completed .pct-step-icon {
    background: #10b981;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.pct-progress-checkmarks .pct-progress-step.completed .pct-step-number {
    display: none;
}

.pct-progress-checkmarks .pct-progress-step.completed .pct-checkmark {
    display: block;
}

.pct-progress-checkmarks .pct-progress-step.completed .pct-step-label {
    color: #10b981;
    font-weight: 600;
}

/* Connecting line (gray base) */
.pct-progress-checkmarks .pct-progress-wrapper::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

/* Animated progress line (gradient overlay) */
.pct-progress-checkmarks .pct-progress-wrapper::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #10b981 0%, #345AD8 100%);
    z-index: 1;
    width: 0%;
    transition: width 0.4s ease;
}

/* Progress line width states */
.pct-progress-checkmarks[data-progress="0"] .pct-progress-wrapper::after { width: 0%; }
.pct-progress-checkmarks[data-progress="50"] .pct-progress-wrapper::after { width: 50%; }
.pct-progress-checkmarks[data-progress="100"] .pct-progress-wrapper::after { width: 100%; }

/* ===================================================================
   FORM RESPONSE STYLES (Success/Error Messages)
   =================================================================== */

/* Hide all icons in form response - text only */
.pct-form-response .spinner,
.pct-form-response .dashicons,
.pct-form-response svg,
.pct-form-response img {
    display: none !important;
}

.pct-form-response {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.pct-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pct-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hide form content when response is shown */
.pct-form-container.pct-form-submitted .pct-progress-indicator,
.pct-form-container.pct-form-submitted .pct-form-step,
.pct-form-container.pct-form-submitted .pct-step-navigation,
.pct-form-container.pct-form-submitted .pct-form-fields,
.pct-form-container.pct-form-submitted .pct-form-submit-wrap,
.pct-form-container.pct-form-submitted .pct-form-loading {
    display: none !important;
}

.pct-form-container.pct-form-submitted .pct-form-response {
    display: block !important;
}

/* ===================================================================
   NAVIGATION BUTTONS - Consistent Sizing
   =================================================================== */

.pct-step-navigation {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
    align-items: center;
}

.pct-btn-prev,
.pct-btn-next,
.pct-form-submit-wrap button[type="submit"] {
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
    display: inline-block;
}

/* Equal width buttons inside step navigation */
.pct-step-navigation .pct-btn-prev,
.pct-step-navigation .pct-btn-next,
.pct-step-navigation button[type="submit"] {
    flex: 1;
    min-width: 0;
    min-height: 50px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    box-sizing: border-box;
}

/* Ensure submit button inner span doesn't affect height */
.pct-step-navigation button[type="submit"] .pct-submit-text {
    display: inline;
    line-height: inherit;
}

/* Previous button - Secondary style */
.pct-btn-prev {
    background: #f1f5f9;
    color: #334155;
}

.pct-btn-prev:hover {
    background: #e2e8f0;
    color: #334155 !important; /* Fix: Keep original text color, don't turn white */
    transform: translateY(-2px); /* Fix: Add upward animation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Next button - Primary style */
.pct-btn-next {
    background: #345AD8;
    color: white;
}

.pct-btn-next:hover {
    background: #3c63e6;
    transform: translateY(-2px); /* Fix: Add upward animation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Submit button - Primary style */
.pct-form-submit-wrap button[type="submit"] {
    background: #509E2F;
    color: white;
}

.pct-form-submit-wrap button[type="submit"]:hover {
    background: #4C8C2B;
}

/* Submit button inside step navigation gets hover animation */
.pct-step-navigation button[type="submit"] {
    background: #509E2F;
}

.pct-step-navigation button[type="submit"]:hover {
    background: #4C8C2B;
    transform: translateY(-2px); /* Fix: Add upward animation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pct-step-navigation .pct-btn-prev {
    order: 1;
}

.pct-step-navigation .pct-btn-next,
.pct-step-navigation button[type="submit"] {
    order: 2;
}

.pct-submit-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.pct-submit-subtext {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 4px;
}

/* ===================================================================
   MOBILE RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
    .pct-form-container {
        padding: 15px;
    }

    .pct-form-step {
        padding: 20px;
    }

    /* Force all fields to single column on mobile */
    .pct-form-fields.pct-fields-horizontal {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pct-form-fields.pct-fields-horizontal .pct-form-field-wrap:last-child:nth-child(odd) {
        grid-column: 1;
    }

    .pct-form-fields.pct-fields-horizontal .pct-field-option-group {
        grid-column: 1;
    }

    /* Radio/checkbox single column on mobile */
    .pct-form-fields.pct-fields-horizontal .pct-radio-group,
    .pct-form-fields.pct-fields-horizontal .pct-checkbox-group,
    .pct-form-fields .pct-field-layout-horizontal .pct-radio-group,
    .pct-form-fields .pct-field-layout-horizontal .pct-checkbox-group {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pct-form-fields .pct-radio-item:last-child:nth-child(odd),
    .pct-form-fields .pct-checkbox-item:last-child:nth-child(odd) {
        grid-column: 1;
    }

    /* Button-style radios single column on mobile */
    .pct-radio-container.pct-field-horizontal-2col {
        grid-template-columns: 1fr;
    }

    /* Slightly reduce padding on mobile */
    .pct-radio-item,
    .pct-checkbox-item {
        padding: 8px 12px;
    }

    /* Progress indicators mobile */
    .pct-progress-numbered_circles .pct-progress-wrapper {
        padding: 0 10px;
    }

    .pct-progress-numbered_circles .pct-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .pct-progress-numbered_circles .pct-progress-step.completed .pct-step-number::before {
        font-size: 16px;
    }

    .pct-progress-numbered_circles .pct-step-label {
        font-size: 11px;
        max-width: 100px;
    }

    .pct-progress-numbered_circles .pct-progress-wrapper::before {
        top: 17.5px;
        left: 10px;
        right: 10px;
    }

    /* Checkmarks mobile */
    .pct-progress-checkmarks .pct-step-icon {
        width: 40px;
        height: 40px;
    }

    .pct-progress-checkmarks .pct-step-number {
        font-size: 16px;
    }

    .pct-progress-checkmarks .pct-checkmark {
        width: 20px;
        height: 20px;
    }

    .pct-progress-checkmarks .pct-step-label {
        font-size: 11px;
        max-width: 100px;
    }

    .pct-progress-checkmarks .pct-progress-wrapper::before,
    .pct-progress-checkmarks .pct-progress-wrapper::after {
        top: 20px;
    }

    /* Navigation buttons mobile */
    .pct-step-navigation {
        flex-direction: column;
    }

    .pct-btn-prev,
    .pct-btn-next,
    .pct-form-submit-wrap button[type="submit"] {
        width: 100%;
        padding: 10px 20px !important;
        font-size: 15px !important;
    }
}

/* ===================================================================
   TABLET BREAKPOINT
   =================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .pct-form-fields.pct-fields-horizontal {
        gap: 15px;
    }
}
/* ===================================================================
   DURATION SLIDER FIELD
   Add to multistep-form.css
   =================================================================== */

.pct-duration-field {
    width: 100%;
}

/* Display value above the slider */
.pct-duration-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    min-height: 52px;
}

.pct-duration-value {
    font-size: 36px;
    font-weight: 700;
    color: #345AD8;
    line-height: 1;
    transition: all 0.15s ease;
}

.pct-duration-unit {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.pct-duration-separator {
    font-size: 20px;
    color: #ccc;
    font-weight: 300;
    margin: 0 4px;
}

/* Track container */
.pct-duration-slider-wrap {
    position: relative;
    padding: 12px 0 24px;
}

/* Background track */
.pct-duration-track {
    position: relative;
    height: 10px;
    background: #e2e8f0;
    border-radius: 99px;
    cursor: pointer;
}

/* Filled portion of track */
.pct-duration-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #345AD8, #10b981);
    border-radius: 99px;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* Draggable thumb */
.pct-duration-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: #fff;
    border: 3px solid #345AD8;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    z-index: 2;
    touch-action: none;
}

.pct-duration-thumb:hover {
    border-color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
    transform: translate(-50%, -50%) scale(1.15);
}

.pct-duration-thumb.dragging {
    cursor: grabbing;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Tick marks beneath track */
.pct-duration-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 0;
    margin-top: 10px;
}

.pct-duration-tick {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.pct-duration-tick:hover {
    color: #345AD8;
}

.pct-duration-tick.active {
    color: #345AD8;
    font-weight: 600;
}

/* Hidden native input that stores the value */
.pct-duration-input {
    display: none;
}

/* Months conversion badge (shown when output_format = months) */
.pct-duration-months-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 99px;
    text-align: center;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .pct-duration-value {
        font-size: 28px;
    }

    .pct-duration-tick {
        font-size: 10px;
    }
}

/* Field Sub-Text */
.pct-field-subtext {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    margin-bottom: 8px;
    font-style: italic;
    text-align: center;
}

/* ============================================
   Currency Slider (matches duration slider)
   ============================================ */

.pct-currency-field {
    margin: 20px 0;
    padding: 10px 0;
}

.pct-currency-display {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pct-currency-slider-wrap {
    position: relative;
    padding: 10px 0 35px 0;
}

.pct-currency-track {
    position: relative;
    height: 10px;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.pct-currency-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #4a90d9);
    border-radius: 4px 0 0 4px;
    transition: width 0.1s ease;
    pointer-events: none;
}

.pct-currency-thumb {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    background: #2271b1;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    z-index: 2;
}

.pct-currency-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.pct-currency-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.pct-currency-ticks {
    position: relative;
    height: 25px;
    margin-top: 10px;
}

.pct-currency-tick {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #666;
    white-space: nowrap;
    user-select: none;
    cursor: pointer; /* NEW */
    transition: color 0.2s ease; /* NEW */
}

.pct-currency-tick:hover {
    color: #2271b1; /* NEW - highlight on hover */
    font-weight: 600; /* NEW */
}

.pct-currency-tick::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: #999;
}

/* Blocked button styling */
.pct-button-blocked {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #ccc !important;
    border-color: #999 !important;
}

.pct-button-blocked:hover {
    background: #ccc !important;
    transform: none !important;
}

/* Blocking warning message */
.pct-blocking-warning {
    animation: pct-warning-pulse 0.5s ease-out;
}

@keyframes pct-warning-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Admin: Blocking rule styling */
.pct-blocking-rule {
    position: relative;
}

.pct-remove-blocking-rule {
    color: #b32d2e;
}

.pct-remove-blocking-rule:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* HTML Content Field (Display Only) */
.pct-field-html {
    margin-bottom: 25px;
}

.pct-field-html-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #1e293b;
}

.pct-field-html-content {
    line-height: 1.6;
    color: #475569;
}

.pct-field-html-content p {
    margin-bottom: 12px;
}

.pct-field-html-content p:last-child {
    margin-bottom: 0;
}

.pct-field-html-content ul,
.pct-field-html-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.pct-field-html-content li {
    margin-bottom: 6px;
}

.pct-field-html-content strong {
    font-weight: 600;
    color: #1e293b;
}

.pct-field-html-content a {
    color: #2563eb;
    text-decoration: underline;
}

.pct-field-html-content a:hover {
    color: #1d4ed8;
}

/* Consent Checkbox Styles */
.pct-consent-container {
    margin: 15px 0;
}

.pct-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pct-consent-option input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pct-consent-option label {
    cursor: pointer;
    line-height: 1.6;
    margin: 0;
}

.pct-consent-option label a {
    color: #2271b1;
    text-decoration: underline;
}

.pct-consent-option label a:hover {
    color: #135e96;
}

.pct-consent-warning {
    margin-top: 10px;
    padding: 12px;
    background: #fee;
    border-left: 3px solid #dc3232;
    color: #dc3232;
    font-weight: 600;
    border-radius: 4px;
}

.pct-form-field-wrap.has-error .pct-consent-option {
    border-color: #dc3232;
}