/* Premium Form Styles */
.oef-form-wrapper {
    border-radius: 12px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.oef-public-form {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.oef-form-field {
    box-sizing: border-box;
    margin-bottom: 0;
    width: 100%;
    flex: 0 0 100%;
}

/* Field Sizes: Controls the width of the input/dropdown within the field line */
/* Large (Default = 100% full width of the line) */
.oef-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field textarea,
.oef-form-field select,
.oef-form-field .oef-custom-select,
.oef-form-field .oef-signature-pad-wrapper,
.oef-form-field .oef-file-upload-wrap,
.oef-form-field .oef-richtext-editor,
.oef-form-field .oef-slider-wrap,
.oef-form-field .oef-name-grid,
.oef-form-field .oef-address-grid,
.oef-form-field.oef-size-large input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-large textarea,
.oef-form-field.oef-size-large select,
.oef-form-field.oef-size-large .oef-custom-select,
.oef-form-field.oef-size-large .oef-signature-pad-wrapper,
.oef-form-field.oef-size-large .oef-file-upload-wrap,
.oef-form-field.oef-size-large .oef-richtext-editor,
.oef-form-field.oef-size-large .oef-slider-wrap,
.oef-form-field.oef-size-large .oef-name-grid,
.oef-form-field.oef-size-large .oef-address-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Medium (~60% width of the line) */
.oef-form-field.oef-size-medium input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-medium textarea,
.oef-form-field.oef-size-medium select,
.oef-form-field.oef-size-medium .oef-custom-select,
.oef-form-field.oef-size-medium .oef-signature-pad-wrapper,
.oef-form-field.oef-size-medium .oef-file-upload-wrap,
.oef-form-field.oef-size-medium .oef-richtext-editor,
.oef-form-field.oef-size-medium .oef-slider-wrap,
.oef-form-field.oef-size-medium .oef-name-grid,
.oef-form-field.oef-size-medium .oef-address-grid {
    width: 60% !important;
    max-width: 60% !important;
    min-width: 240px;
    box-sizing: border-box !important;
}

/* Small (~33.3% width of the line) */
.oef-form-field.oef-size-small input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-small textarea,
.oef-form-field.oef-size-small select,
.oef-form-field.oef-size-small .oef-custom-select,
.oef-form-field.oef-size-small .oef-signature-pad-wrapper,
.oef-form-field.oef-size-small .oef-file-upload-wrap,
.oef-form-field.oef-size-small .oef-richtext-editor,
.oef-form-field.oef-size-small .oef-slider-wrap,
.oef-form-field.oef-size-small .oef-name-grid,
.oef-form-field.oef-size-small .oef-address-grid {
    width: 33.333% !important;
    max-width: 33.333% !important;
    min-width: 180px;
    box-sizing: border-box !important;
}

/* Compatibility with nested layout columns */
.oef-col > .oef-form-field {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Field-Level Alignment: Left, Center, Right */
/* Left Alignment */
.oef-form-field.oef-align-left {
    text-align: left;
}
.oef-form-field.oef-align-left > label,
.oef-form-field.oef-align-left .oef-field-description,
.oef-form-field.oef-align-left .oef-field-sublabel {
    text-align: left;
    display: block;
}
.oef-form-field.oef-align-left input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-left textarea,
.oef-form-field.oef-align-left select,
.oef-form-field.oef-align-left .oef-custom-select,
.oef-form-field.oef-align-left .oef-signature-pad-wrapper,
.oef-form-field.oef-align-left .oef-file-upload-wrap,
.oef-form-field.oef-align-left .oef-richtext-editor,
.oef-form-field.oef-align-left .oef-slider-wrap,
.oef-form-field.oef-align-left .oef-name-grid,
.oef-form-field.oef-align-left .oef-address-grid {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left;
}
.oef-form-field.oef-align-left .oef-custom-select-toggle .oef-selected-text {
    text-align: left;
}
.oef-form-field.oef-align-left .oef-options-group,
.oef-form-field.oef-align-left .oef-choices-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Center Alignment */
.oef-form-field.oef-align-center {
    text-align: center;
}
.oef-form-field.oef-align-center > label,
.oef-form-field.oef-align-center .oef-field-description,
.oef-form-field.oef-align-center .oef-field-sublabel {
    text-align: center;
    display: block;
}
.oef-form-field.oef-align-center input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-center textarea,
.oef-form-field.oef-align-center select,
.oef-form-field.oef-align-center .oef-custom-select,
.oef-form-field.oef-align-center .oef-signature-pad-wrapper,
.oef-form-field.oef-align-center .oef-file-upload-wrap,
.oef-form-field.oef-align-center .oef-richtext-editor,
.oef-form-field.oef-align-center .oef-slider-wrap,
.oef-form-field.oef-align-center .oef-name-grid,
.oef-form-field.oef-align-center .oef-address-grid {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}
.oef-form-field.oef-align-center .oef-custom-select-toggle .oef-selected-text {
    text-align: center;
}
.oef-form-field.oef-align-center .oef-options-group,
.oef-form-field.oef-align-center .oef-choices-list,
.oef-form-field.oef-align-center .oef-likert-table-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Right Alignment */
.oef-form-field.oef-align-right {
    text-align: right;
}
.oef-form-field.oef-align-right > label,
.oef-form-field.oef-align-right .oef-field-description,
.oef-form-field.oef-align-right .oef-field-sublabel {
    text-align: right;
    display: block;
}
.oef-form-field.oef-align-right input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-right textarea,
.oef-form-field.oef-align-right select,
.oef-form-field.oef-align-right .oef-custom-select,
.oef-form-field.oef-align-right .oef-signature-pad-wrapper,
.oef-form-field.oef-align-right .oef-file-upload-wrap,
.oef-form-field.oef-align-right .oef-richtext-editor,
.oef-form-field.oef-align-right .oef-slider-wrap,
.oef-form-field.oef-align-right .oef-name-grid,
.oef-form-field.oef-align-right .oef-address-grid {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right;
}
.oef-form-field.oef-align-right .oef-custom-select-toggle .oef-selected-text {
    text-align: right;
    margin-right: 6px;
}
.oef-form-field.oef-align-right .oef-options-group,
.oef-form-field.oef-align-right .oef-choices-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Structural elements taking full form row */
.oef-form-submit,
.oef-global-calc-wrap,
.oef-form-response,
.oef-step-buttons {
    flex: 0 0 100%;
    width: 100%;
}

/* Mobile Responsiveness: Stretch inputs to full width on small screens */
@media (max-width: 640px) {
    .oef-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
    .oef-form-field textarea,
    .oef-form-field select,
    .oef-form-field .oef-custom-select,
    .oef-form-field .oef-signature-pad-wrapper,
    .oef-form-field .oef-file-upload-wrap,
    .oef-form-field .oef-richtext-editor,
    .oef-form-field .oef-slider-wrap,
    .oef-form-field .oef-name-grid,
    .oef-form-field .oef-address-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.oef-form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d2327;
}

.oef-required {
    color: #d63638;
    margin-left: 2px;
}

/* Input Styling */
.oef-form-field input[type="text"],
.oef-form-field input[type="email"],
.oef-form-field input[type="tel"],
.oef-form-field input[type="url"],
.oef-form-field input[type="date"],
.oef-form-field input[type="time"],
.oef-form-field input[type="datetime-local"],
.oef-form-field textarea,
.oef-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fbfbfc;
}

.oef-form-field input:focus,
.oef-form-field textarea:focus,
.oef-form-field select:focus {
    outline: none;
    border-color: #2271b1;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.oef-form-field textarea {
    min-height: 120px;
    line-height: 1.5;
}

/* Name Grid */
.oef-name-grid {
    display: flex;
    gap: 12px;
}

.oef-name-col {
    flex: 1;
    min-width: 0;
}

.oef-sublabel {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #646970;
    font-weight: 500;
}

/* Address Grid */
.oef-address-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-address-row {
    display: flex;
    gap: 12px;
}

.oef-address-row input,
.oef-address-row select {
    flex: 1;
    min-width: 0;
}

.oef-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Address Grid */
.oef-address-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-address-row {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.oef-address-row input,
.oef-address-row select {
    flex: 1;
    min-width: 0;
}

.oef-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Image Choices Customization */
.oef-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Layout Variations */
.oef-choice-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--oef-img-size, 180px), 1fr));
    gap: 20px;
}

.oef-choice-layout-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oef-choice-layout-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.oef-choice-layout-row .oef-choice-item {
    flex: 0 0 auto;
}

/* Base Choice Item - Standard Spacing */
.oef-choice-item {
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

/* Image Card Look - Only apply when there is an image */
.oef-choice-item:has(.oef-choice-image) {
    border: 2px solid #dcdcde;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.oef-choice-item:has(.oef-choice-image):hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.oef-choice-item.is-selected:has(.oef-choice-image) {
    border-color: #2271b1;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 1px #2271b1, 0 8px 20px rgba(34, 113, 177, 0.1);
}

/* Selection Indicator - Centered over the Image specifically */
.oef-choice-item:has(.oef-choice-image) input[type="checkbox"],
.oef-choice-item:has(.oef-choice-image) input[type="radio"] {
    position: absolute !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10;
}

/* Precise centering over the image part in Card mode (Image on Top) */
.oef-display-card .oef-choice-item:has(.oef-choice-image) input {
    top: calc( (var(--oef-img-size, 180px) * 0.75) / 2 + 15px ) !important;
    bottom: auto !important;
}

/* Precise centering over the image part in Label-Image mode (Image on Bottom) */
.oef-display-label-image .oef-choice-item:has(.oef-choice-image) input {
    top: auto !important;
    bottom: calc( (var(--oef-img-size, 180px) * 0.75) / 2 + 15px ) !important;
}

.oef-choice-item:has(.oef-choice-image) input:checked {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

.oef-choice-item:focus-within .oef-option-label{
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
    outline: none;
}

.oef-choice-image {
    width: var(--oef-img-size, 100%);
    max-width: 100%;
    height: calc(var(--oef-img-size, 180px) * 0.75);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #f0f0f1;
    margin: 0 auto;
}

/* Display Modes */
.oef-display-card .oef-choice-image { margin-bottom: 12px; }
.oef-display-label-image .oef-option-label { margin-bottom: 12px; }
.oef-display-image .oef-option-label { 
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}
.oef-display-image .oef-option-text {
    display: none !important;
}

/* Centering for Image Only mode */
.oef-display-image .oef-choice-item:has(.oef-choice-image) input {
    top: 50% !important;
    bottom: auto !important;
}

/* Remove card-specific centering when inside an Image Choice card */
.oef-choice-item:has(.oef-choice-image) .oef-option-label {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    justify-content: center !important;
    min-height: auto !important;
}

.oef-option-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #1d2327;
}

.oef-option-label input {
    margin-right: 8px;
}

/* Custom Image Dropdown */
.oef-custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    box-sizing: border-box !important;
}

.oef-custom-select-toggle {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    background: #fbfbfc;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    color: #1d2327;
    box-sizing: border-box !important;
}

.oef-selected-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.oef-selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.oef-custom-select.is-open .oef-custom-select-toggle {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    border-radius: 8px 8px 0 0;
}

.oef-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #2271b1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.oef-custom-select.is-open .oef-custom-select-dropdown {
    display: block;
}

.oef-custom-select-toggle:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

.oef-custom-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    gap: 12px;
}

.oef-custom-option:hover,
.oef-custom-option.is-focused {
    background: #f0f6fb;
}

.oef-custom-option.is-selected {
    background: #2271b1;
    color: #fff;
}

.oef-custom-option.is-selected .oef-custom-option-label {
    font-weight: 600;
}

.oef-custom-option:hover {
    background: #f0f7ff;
}

.oef-custom-option.is-selected {
    background: #e7f3ff;
    font-weight: 600;
}

.oef-custom-option-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.oef-custom-option-label {
    flex: 1;
    font-size: 14px;
}

/* Unified Rating & NPS Scale */
.oef-rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.oef-rating-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
}

.oef-rating-option input {
    display: none !important;
}

/* Box Style */
.oef-style-box .oef-rating-box {
    width: 38px;
    height: 38px;
    border: 1.5px solid #dcdcde;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfbfc;
    font-weight: 700;
    font-size: 14px;
    color: #1d2327;
}

.oef-style-box .oef-rating-option:hover .oef-rating-box {
    border-color: #2271b1;
    background: #f0f7ff;
}

.oef-style-box .oef-rating-option input:checked + .oef-rating-box {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Icon Styles (Star, Heart, Thumb) */
.oef-rating-container .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #dcdcde;
    transition: all 0.2s;
}

.oef-rating-option:hover .dashicons {
    color: #ffb900;
    transform: scale(1.1);
}

.oef-rating-option input:checked + .dashicons {
    color: #ffb900;
}

.oef-style-heart .oef-rating-option input:checked + .dashicons,
.oef-style-heart .oef-rating-option:hover .dashicons {
    color: #d63638;
}

.oef-style-thumb .oef-rating-option input:checked + .dashicons,
.oef-style-thumb .oef-rating-option:hover .dashicons {
    color: #2271b1;
}

.oef-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #646970;
    font-weight: 500;
    padding: 0 5px;
}

/* Likert Table */
.oef-likert-table-wrapper {
    overflow-x: auto;
}

.oef-likert-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcde;
    font-size: 14px;
}

.oef-likert-table th, 
.oef-likert-table td {
    padding: 12px;
    border: 1px solid #dcdcde;
    text-align: left;
}

.oef-likert-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.oef-likert-cell {
    text-align: center !important;
}

.oef-likert-cell input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Modern Style */
.oef-likert-style-modern .oef-likert-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    border: none;
    background: transparent;
}

.oef-likert-style-modern .oef-likert-table th {
    background: transparent;
    border: none;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    color: #8c8f94;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
}

.oef-likert-style-modern .oef-likert-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oef-likert-style-modern .oef-likert-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.oef-likert-style-modern .oef-likert-table td {
    border: none;
    padding: 15px;
}

.oef-likert-style-modern .oef-likert-table td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #1d2327;
}

.oef-likert-style-modern .oef-likert-table td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Boxed Style */
.oef-likert-style-boxed .oef-likert-boxed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oef-likert-style-boxed .oef-likert-boxed-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.oef-likert-style-boxed .oef-likert-row-label {
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
}

.oef-likert-style-boxed .oef-likert-boxed-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oef-likert-style-boxed .oef-likert-boxed-choice {
    flex: 1 0 calc(20% - 10px);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fbfbfc;
    text-align: center;
}

.oef-likert-style-boxed .oef-likert-boxed-choice:hover {
    border-color: #2271b1;
    background: #fff;
}

.oef-likert-style-boxed .oef-likert-boxed-choice input {
    margin-right: 8px;
}

.oef-likert-style-boxed .oef-likert-boxed-choice.is-selected {
    border-color: #2271b1;
    background: #f0f7ff;
    color: #2271b1;
}

/* Signature Pad */
.oef-signature-pad {
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    position: relative;
}

.oef-signature-pad canvas {
    width: 100%;
    height: 120px;
    cursor: crosshair;
}

.oef-sig-clear {
    margin-top: 10px;
    font-size: 11px;
    background: none;
    border: 1px solid inherit;
    padding: 2px 10px;
    border-radius: 3px;
    cursor: pointer;
    color: inherit;
}

/* Repeater */
.oef-repeater-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.oef-repeater-remove {
    color: #d63638;
    cursor: pointer;
    font-size: 20px;
}

/* Captcha */
.oef-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #dcdcde;
}

.oef-captcha-question {
    font-weight: 600;
    color: #2271b1;
}

/* Submit Button */
.oef-submit-btn {
    padding: 14px 32px;
    background-color: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oef-submit-btn:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.oef-submit-btn:active {
    transform: translateY(0);
}

/* Response Messages */
.oef-form-response {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.oef-form-response.oef-standalone,
.oef-form-response:only-child {
    margin-top: 0;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
}

.oef-form-response.success {
    background-color: #edfaef;
    color: #1e5e24;
    border: 1px solid #c9e7cb;
}

.oef-form-response.error {
    background-color: #fcf0f1;
    color: #a00;
    border: 1px solid #f5d3d5;
}

/* Layout Grid */
.oef-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.oef-col {
    flex: 1;
    min-width: 190px;
    box-sizing: border-box;
}

.oef-divider {
    border: 0;
    border-top: 1px solid #dcdcde;
    margin: 32px 0;
}

.oef-divider.oef-divider-dotted {
    border-top-style: dotted;
}

.oef-divider.oef-divider-dashed {
    border-top-style: dashed;
}

.oef-divider.oef-divider-small {
    margin: 16px 0;
}

.oef-divider.oef-divider-medium {
    margin: 32px 0;
}

.oef-divider.oef-divider-large {
    margin: 64px 0;
}

.oef-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: oef-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 12px;
}

@media (max-width: 600px) {
    .oef-name-grid {
        gap: 12px;
    }
    .oef-address-row {
        flex-direction: column;
    }
}

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

/* File Upload Styling */
.oef-type-file input[type="file"],
.oef-type-camera input[type="file"] {
    width: 100%;
    border: 2px dashed #dcdcde;
    padding: 20px;
    background: #fbfbfc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #646970;
}

.oef-type-file input[type="file"]:hover,
.oef-type-camera input[type="file"]:hover {
    border-color: #2271b1;
    background: rgba(34, 113, 177, 0.05);
}

.oef-type-file input[type="file"]::file-selector-button,
.oef-type-camera input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    background: #fff;
    cursor: pointer;
    margin-right: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.oef-type-file input[type="file"]::file-selector-button:hover,
.oef-type-camera input[type="file"]::file-selector-button:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

/* Entry Preview Styles */
.oef-entry-preview-container {
    background: #fbfbfc;
    border: 1.5px solid #dcdcde;
    border-radius: 12px;
    padding: 25px;
    margin-top: 10px;
}

.oef-entry-preview-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-preview-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.oef-preview-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oef-preview-label {
    font-weight: 600;
    color: #646970;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oef-preview-value {
    font-weight: 500;
    color: #1d2327;
    text-align: right;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.oef-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.oef-preview-item-img {
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.oef-preview-signature .oef-preview-item-img {
    width: 150px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fff;
}

.oef-preview-item-text {
    line-height: 1.2;
}

.oef-entry-preview-loading,
.oef-entry-preview-empty {
    text-align: center;
    color: #8c8f94;
    font-style: italic;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .oef-preview-row {
        flex-direction: column;
        gap: 4px;
    }
    .oef-preview-value {
        text-align: left;
        max-width: 100%;
        align-items: flex-start;
    }
    .oef-preview-item {
        justify-content: flex-start;
    }
}

/* Modern File Dropzone */
.oef-file-dropzone {
    position: relative;
    border: 2px dashed #2271b1;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    background: rgba(34, 113, 177, 0.02);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 10px;
    color: #646970;
}

.oef-file-dropzone:hover, .oef-file-dropzone.drag-over {
    border-color: #135e96;
    background: rgba(34, 113, 177, 0.04);
}

.oef-file-dropzone-inner {
    pointer-events: none;
}

.oef-file-dropzone-icon {
    margin-bottom: 12px;
}

.oef-file-dropzone-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.oef-file-dropzone-text strong {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
    font-size: 14px;
}

.oef-file-dropzone-text p {
    margin: 0;
    font-size: 12px;
    color: #8c8f94;
}

.oef-file-preview-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oef-file-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3338;
}

.oef-file-preview-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oef-file-preview-remove {
    cursor: pointer;
    color: #d63638;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.oef-file-preview-remove:hover {
    color: #b32d2e;
}

/* Standardized Radio Button Styling (Front-end) */
.oef-option-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    border: 1.5px solid #dcdcde !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1d2327 !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

.oef-option-label:hover {
    border-color: #2271b1 !important;
    background: #fbfbfc !important;
}

.oef-choice-item.is-selected .oef-option-label {
    border-color: #2271b1 !important;
    background: #f0f7ff !important;
}

.oef-option-label input[type="radio"],
.oef-form-field input[type="radio"],
.oef-choice-item input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

.oef-option-label input[type="radio"]::before,
.oef-form-field input[type="radio"]::before,
.oef-choice-item input[type="radio"]::before {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    border-radius: 50% !important;
    background-color: #2271b1 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: scale(0) !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.oef-option-label input[type="radio"]:checked,
.oef-form-field input[type="radio"]:checked,
.oef-choice-item input[type="radio"]:checked {
    border-color: #2271b1 !important;
    border-width: 2px !important;
    background: #ffffff !important;
}

.oef-option-label input[type="radio"]:checked::before,
.oef-form-field input[type="radio"]:checked::before,
.oef-choice-item input[type="radio"]:checked::before {
    transform: scale(1) !important;
    background-color: #2271b1 !important;
}

.oef-conv-wrapper input[type="radio"]:checked {
    border-color: var(--oef-accent, #2271b1) !important;
}
.oef-conv-wrapper input[type="radio"]:checked::before {
    background-color: var(--oef-accent, #2271b1) !important;
}

.oef-option-label input[type="checkbox"]::before,
.oef-form-field input[type="checkbox"]::before,
.oef-choice-item input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}

.oef-option-label input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    border: 2px solid #dcdcde !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
}

.oef-option-label input[type="checkbox"]:checked {
    border-color: #2271b1 !important;
    background: #2271b1 !important;
}

.oef-option-label input[type="checkbox"]:checked::after {
    content: '✔' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 14px !important;
}

/* Repeater Enhancements */
.oef-repeater-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.oef-repeater-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-repeater-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #fbfbfc;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.oef-repeater-row:hover {
    border-color: #c3c4c7;
    background: #f6f7f7;
}

.oef-repeater-fields {
    flex: 1;
    display: flex;
    gap: 12px;
    min-width: 0; /* Important for flex children */
}

/* Force horizontal layout for rows mode with high specificity */
.oef-repeater-display-rows .oef-repeater-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

.oef-repeater-field-col {
    min-width: 0;
    flex-basis: 0; /* Ensure flex-grow works correctly */
}

.oef-repeater-field-col input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Blocks Mode */
.oef-repeater-display-blocks .oef-repeater-row {
    flex-direction: column;
    border: 1.5px dashed #dcdcde;
    background: #fff;
}

.oef-repeater-display-blocks .oef-repeater-fields {
    flex-direction: column !important;
    width: 100%;
    gap: 15px;
}

.oef-repeater-display-blocks .oef-repeater-field-item input {
    width: 100% !important;
}

.oef-repeater-display-blocks .oef-repeater-row-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Row Actions */
.oef-repeater-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  
}

.oef-repeater-remove-icon {
    color: #8c8f94;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
    line-height: 1;
}

.oef-repeater-remove-icon:hover {
    color: #d63638;
}

.oef-repeater-remove-btn {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.oef-btn-link {
    background: none;
    border: none;
    color: #2271b1;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
}

.oef-btn-link:hover {
    color: #135e96;
    text-decoration: none;
}

/* Add Button Styling */
.oef-repeater-actions {
    display: flex;
}

.oef-repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.oef-repeater-add.button {
    padding: 10px 20px;
}

.oef-repeater-add .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile Responsiveness for Rows */
@media (max-width: 600px) {
    .oef-repeater-display-rows .oef-repeater-fields {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    
    .oef-repeater-field-col {
        flex: 1 1 100% !important;
    }

    .oef-repeater-row {
        flex-direction: column;
    }

    .oef-repeater-row-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
.oef-public-form [data-logic-hidden="true"] { display: none !important; }

/* Field Description */
.oef-field-description {
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
    white-space: pre-line;
}

.oef-field-description.oef-desc-below,
.oef-field-description:not(.oef-desc-above) {
    margin-top: 8px;
    margin-bottom: 0;
}

.oef-field-description.oef-desc-above {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Map Field Frontend Styles */
.oef-map-field-wrapper {
    position: relative;
    width: 100%;
}

.oef-map-location-item {
    border: 1.5px solid #dcdcde;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.oef-map-location-item:hover {
    border-color: #2271b1;
    background: #fbfbfc;
}
.oef-map-location-item.active {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #2271b1, 0 4px 12px rgba(34, 113, 177, 0.1);
}

.oef-map-location-item input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.oef-loc-info {
    flex: 1;
    min-width: 0;
}

.oef-map-info-window {
    padding: 5px;
    max-width: 200px;
}

.oef-map-info-window strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.oef-choice-item.oef-choice-grayed {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f0f1 !important;
    border-color: #dcdcde !important;
}

.oef-custom-option.oef-choice-grayed {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f0f1;
}

/* Layout Ratios */
.oef-form-field.oef-type-layout { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
.oef-row.oef-layout-100 > .oef-col { flex: 0 0 100%; max-width: 100%; width: 100%; }
.oef-row.oef-layout-50-50 > .oef-col { flex: 0 0 calc(50% - 12px); }
.oef-row.oef-layout-33-67 > .oef-col:nth-child(1) { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-33-67 > .oef-col:nth-child(2) { flex: 0 0 calc(66.66% - 16px); }
.oef-row.oef-layout-67-33 > .oef-col:nth-child(1) { flex: 0 0 calc(66.66% - 16px); }
.oef-row.oef-layout-67-33 > .oef-col:nth-child(2) { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-25-75 > .oef-col:nth-child(1) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-25-75 > .oef-col:nth-child(2) { flex: 0 0 calc(75% - 18px); }
.oef-row.oef-layout-75-25 > .oef-col:nth-child(1) { flex: 0 0 calc(75% - 18px); }
.oef-row.oef-layout-75-25 > .oef-col:nth-child(2) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-35-65 > .oef-col:nth-child(1) { flex: 0 0 calc(35% - 15px); }
.oef-row.oef-layout-35-65 > .oef-col:nth-child(2) { flex: 0 0 calc(65% - 15px); }
.oef-row.oef-layout-65-35 > .oef-col:nth-child(1) { flex: 0 0 calc(65% - 15px); }
.oef-row.oef-layout-65-35 > .oef-col:nth-child(2) { flex: 0 0 calc(35% - 15px); }
.oef-row.oef-layout-33-33-33 > .oef-col { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(1) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(2) { flex: 0 0 calc(50% - 18px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(3) { flex: 0 0 calc(25% - 18px); }

@media (max-width: 768px) {
    .oef-row[class*="oef-layout-"] > .oef-col {
        flex: 0 0 100% !important;
    }
}

/* Smart Phone (intl-tel-input) Integration */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag-container {
    padding: 2px;
    z-index: 5;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
    padding: 0 10px 0 12px;
    background-color: transparent !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-right: 1.5px solid #dcdcde;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #dcdcde;
    z-index: 1000 !important;
    background-color: #fff;
}

.iti__country {
    padding: 10px 15px;
    font-size: 14px;
}

.iti__country-name {
    color: #1d2327;
}

.iti__dial-code {
    color: #646970;
}

.iti__selected-dial-code {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-left: 8px;
}

/* Ensure our input still looks right when wrapped by ITI */
.oef-smart-phone-field {
    width: 100% !important;
}

/* ── Gutenberg Block Theme Selector & Controls ── */
.oef-gutenberg-themes-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
}

.oef-theme-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #dcdcde !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    height: auto !important;
    min-height: 54px !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    text-decoration: none !important;
}

.oef-theme-card:hover {
    border-color: #2271b1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.oef-theme-card.is-selected {
    border-color: #2271b1 !important;
    background: #f0f6fc !important;
    box-shadow: 0 0 0 1.5px #2271b1 !important;
}

.oef-theme-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    width: 100% !important;
}

.oef-theme-card-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.oef-theme-card-check {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #2271b1 !important;
    line-height: 1 !important;
}

.oef-theme-indicators {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.oef-theme-indicators .component-color-indicator {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    margin-inline-end: -5px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.oef-theme-indicators .component-color-indicator:last-child {
    margin-inline-end: 0 !important;
}

.oef-inspector-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.oef-inspector-two-col .components-base-control {
    margin-bottom: 0 !important;
}

.oef-inspector-col {
    min-width: 0 !important;
}

.wpforms-gutenberg-panel-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #1d2327;
    border-radius: 2px;
}

.wpforms-gutenberg-panel-notice strong {
    display: block;
    margin-bottom: 3px;
    color: #1d2327;
}

.wpforms-gutenberg-panel-notice.wpforms-warning {
    background: #fcf9e8;
    border-left-color: #dba617;
}

.wpforms-gutenberg-form-selector-actions {
    margin: 8px 0 16px 0 !important;
    font-size: 13px !important;
}

.wpforms-gutenberg-form-selector-legend {
    font-size: 12px;
    color: #646970;
    margin-top: 8px;
    line-height: 1.4;
}

.oef-block-wrapper .oef-form-wrapper {
    background: transparent !important;
}

/* Responsive Device Visibility (Frontend Only) */
@media (min-width: 1025px) {
    body:not(.wp-admin) .oef-hide-desktop,
    body:not(.wp-admin) .oef-form-field.oef-hide-desktop,
    body:not(.wp-admin) .oef-row.oef-hide-desktop,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body:not(.wp-admin) .oef-hide-tablet,
    body:not(.wp-admin) .oef-form-field.oef-hide-tablet,
    body:not(.wp-admin) .oef-row.oef-hide-tablet,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body:not(.wp-admin) .oef-hide-mobile,
    body:not(.wp-admin) .oef-form-field.oef-hide-mobile,
    body:not(.wp-admin) .oef-row.oef-hide-mobile,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Range Slider Styling
   ========================================================================== */
.oef-slider-container {
    padding: 6px 0;
    width: 100%;
}

.oef-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 8px !important;
    border-radius: 6px !important;
    background: #e2e8f0 !important;
    outline: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.oef-slider-input:focus {
    background: #cbd5e1 !important;
}

.oef-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4), 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.oef-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #0369a1;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.5), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.oef-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.05);
    background: #075985;
}

.oef-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4), 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.oef-slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: #0369a1;
}

.oef-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.oef-slider-value-label {
    font-size: 14px;
    font-weight: 700 !important;
    color: #0284c7 !important;
    background: #f0f9ff;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
}

/* ==========================================================================
   Calculator Field Display Styling
   ========================================================================== */
.oef-field-calculator {
    margin-top: 6px;
}

.oef-calc-display {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: #f0f9ff;
    border: 2px solid #38bdf8;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: -0.01em;
    min-height: 52px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
    transition: all 0.2s ease;
}


