﻿:root {
    /* Brand */
    --primary-color: #9158db;
    --primary-color-opacity: #9158db30;
    --primary-color-dark: #7a46ab;
    --primary-color-light: #edebf1;
    --primary-color-xlight: #f4f0fb;
    --primary-color-gradient: #7c4dd3;
    --primary-alpha-20: rgba(145, 88, 219, 0.2);
    --primary-alpha-40: rgba(145, 88, 219, 0.4);

    /* Text */
    --text-dark: #0b0b0b;
    --text-heading: #111827;
    --text-muted: #6b7280;

    /* Extended Text */
    --color-text-near-black: #1a1a1a;
    --color-text-input: #241f21;
    --color-placeholder-input: #757575;
    --color-text-body: #333333;
    --color-text-medium: #555555;
    --color-text-subtle: #888888;
    --color-text-faq: #7e7e7f;
    --color-text-on-dark: #f0f0f0;

    /* Status */
    --success-color: #1ee27b;
    --error-color: #e74c3c;
    --color-warning: #ff5c5c;

    /* White & Black */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-separator: #aaaaaa;

    /* Borders */
    --border-color: #e5e5e5;
    --borders-color2: #EDEBF1;
    --border-light: #ddd;
    --border-hover: #939393;
    --border-warm: #e3c99c;
    --border-ui: #e5e7eb;
    --border-input: #cccccc;
    --border-separator: #f1f1f1;
    --color-divider: #d0d3d9;
    --color-scrollbar-thumb: #d1d5db;

    /* Backgrounds */
    --bg-light: #f4f4f4;
    --bg-darkLight: #DDDDDD;
    --bg-white-soft: #fafafa;
    --bg-header: #f4f4f9;
    --bg-section: #f8f8f8;
    --bg-warm-soft: #fffaef;
    --bg-warm-light: #ffeed3;
    --bg-hover-list: #f9fafb;
    --bg-active-list: #eef2ff;

    /* Brand Accent */
    --color-violet: #8b5cf6;

    /* Gold / Warm Accents */
    --color-gold: #f2b400;
    --color-gold-dark: #f59800;
    --color-gold-light: #ebdb00;
    --color-golden-label: #cca46b;

    /* Media / Video */
    --color-purple-deep: #4d1e4d;
    --color-dark-bg: #1a181b;

    /* Blue Accent */
    --color-blue-accent: #3b82f6;

    /* Semi-transparent */
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-35: rgba(255, 255, 255, 0.35);
    --color-footer-bg-item: rgba(250, 250, 250, 0.2);
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-testimonial: rgba(0, 0, 0, 0.12);
    --shadow-card: rgba(16, 24, 40, 0.06);
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-note-muted: rgba(56, 49, 44, 0.5);

    /* Extended Text Shades */
    --color-near-black: #1d1d1f;
    --color-heading-black: #111111;
    --color-heading-deep: #151515;
    --color-heading-near-black: #1e1e1e;
    --color-body-muted: #3f3f46;
    --color-text-dim: #666666;
    --color-text-strong: #222222;
    --color-text-value: #1f1f1f;
    --color-detail-label: #444444;

    /* Yellows & Warnings */
    --bg-nav-pink: #FFE3EE;
    --bg-consent-yellow: #FFFDED;
    --color-yellow-soft: #F4D257;
    --color-yellow-warning: #facc15;
    --color-golden-dim: #ab8a09;
    --color-pill-gold: #F1D05A;
    --bg-warning-soft: #ffcc0054;

    /* Borders */
    --border-dashed: #d6d6d6;
    --border-order-light: #e9e4f3;
    --border-order-subtle: #d6cfdf;
    --color-divider-mid: #898989;
    --color-upload-pill: #6b6764;

    /* Backgrounds */
    --bg-upload: #faf8f5;
    --bg-order-light: #f1edf7;
    --bg-order-medium: #ebe7f3;
    --bg-purple-xlight: #ebdefb;

    /* Green Accent */
    --color-green: #0B6C4C;
    --color-green-light: #C3EEBA;
    --color-green-accent: #6b8e5b;

    /* Graph / Data Viz */
    --color-graph-purple: #32264a;
    --color-pop-bg: #d3bdff;
    --color-pop-text: #272b2d;

    /* Links */
    --color-link: #007bff;
    --color-blue-link: #258cfb;

    /* Gradients */
    --gradient-product-card: linear-gradient(180deg, #EDEBF1 20%, #FAFAFA 70%);
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    overflow-x: hidden;
    margin: 0;
}

body::-webkit-scrollbar {
    width: 0;
}

ol {
    list-style-type: none;
    counter-reset: item;
}

ul,
ol {
    margin: 0px;
    padding: 0px;
}

li {
    list-style: none;
    outline: none;
}

img {
    pointer-events: none;
    outline: none;
    border-style: none;
}

a {
    outline: none;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    color: var(--primary-color)
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a {
    margin: 0px;
}

/*    span[id] {
        display: block;
        position: relative;
    }*/

article,
aside,
footer,
header,
nav,
section {
    display: block;
}

figcaption,
figure,
main {
    display: block;
}

hr {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

audio,
video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

svg:not(:root) {
    overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
    outline: none;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

textarea {
    line-height: 24px;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html [type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    display: inline-block;
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type='checkbox'],
[type='radio'] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

[hidden] {
    display: none;
}

.has-error {
    /* border-radius: 8px; */
    /* padding: 8px; */
}

.field-error {
    margin-top: 2px;
    font-size: 14px;
    color: var(--error-color);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 8px;
    color: var(--color-text-input);
    /* font-weight: 500; */
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    width: 100%;
    background-color: transparent;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='0 0 14 7' fill='none'><path d='M1 1.00011L7 5.00011L13 1.00011' stroke='%231C1C28' stroke-width='2' stroke-linecap='round'/></svg>");
    background-position: right 8px center;
    /* controls spacing */
    background-repeat: no-repeat;
}

select option {
    color: var(--color-text-input);
}

select option[value=""] {
    color: var(--color-placeholder-input);
}

select:has(option[value=""]:checked) {
    color: var(--color-placeholder-input);
}


select:focus {
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239158db' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
}

.has-error {
    /* border-radius: 8px; */
    /* padding: 8px; */
}

.field-error {
    margin: 1px 0px 8px 0px;
    font-size: 14px;
    color: var(--error-color);
}

#radar-suggestions {
    border: 1px solid var(--border-ui) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px var(--shadow-soft) !important;
    background: var(--color-white) !important;
    max-height: 350px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Each Suggestion Row ===== */
#radar-suggestions .suggestion-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-separator) !important;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Remove border from last item */
#radar-suggestions .suggestion-item:last-child {
    border-bottom: none !important;
}

/* ===== Title (First Line) ===== */
#radar-suggestions .suggestion-item p:first-child {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-heading) !important;
    margin: 0 !important;
}

/* ===== Subtitle (Second Line) ===== */
#radar-suggestions .suggestion-item p:last-child {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
}

/* ===== Hover Effect ===== */
#radar-suggestions .suggestion-item:hover {
    background-color: var(--bg-hover-list) !important;
    transform: translateX(4px);
    cursor: pointer;
}

/* ===== Active / Selected State (Optional for JS) ===== */
#radar-suggestions .suggestion-item.active {
    background-color: var(--bg-active-list) !important;
}

/* ===== Smooth Scrollbar ===== */
#radar-suggestions::-webkit-scrollbar {
    width: 6px;
}

#radar-suggestions::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    border-radius: 10px;
}

.autocomplete-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.no-suggestions {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--color-white);
    border-radius: 0 0 10px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Spinner */
.autocomplete-loader::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-ui);
    border-top: 2px solid var(--color-blue-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}



input[type="date"]:focus:before,
input[type="date"]:valid:before {
    display: none;
}

input[type="date"] {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid var(--border-input);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease-in-out;
    background-color: var(--color-white);
    color: var(--color-text-body);
    width: 100%
}

/* Hover */
input[type="date"]:hover {
    border-color: var(--primary-color);
}

/* Focus */
input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-20);
}

/* When a value is selected */
input[type="date"]:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

/* Calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}



.date-field {
    position: relative;
    margin-top: 16px;
}

/* Input styling (your existing styles can stay) */
.date-field input {
    width: 100%;
    padding: 14px 12px;
    font-size: 15px;
    border: 2px solid var(--border-input);
    border-radius: 6px;
    background: var(--color-white);
}

/* Label as placeholder */
.date-field label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    background: white;
    padding: 4px 4px;
    width: 50%;
    transition: all 0.2s ease;
}

/* When focused or has value */
/* .date-field input:focus+label,
.date-field input:valid+label {
    top: -0px;
    font-size: 12px;
    color: var(--primary-color);
} */
.date-field input:focus+label,
.date-field input:valid+label {
    opacity: 0;
    visibility: hidden;
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 425px) {
    select {
        font-size: 16px;
    }
}