/* ===== COMPONENT STYLES ===== */

/* Lead Collection Form - Back buttons */
#backToStep1,
#backToStep2 {
    background: none;
    border: none;
    outline: none;
    padding: 0;
}

#backToStep1:focus,
#backToStep2:focus,
#backToStep1:active,
#backToStep2:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Range sliders - Scoped to embed container */
.embed-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 8px;
    background: var(--slider-track);
    outline: none;
    opacity: 0.8;
    transition: all .3s ease;
}

.embed-container input[type="range"]:hover { 
    opacity: 1; 
    transform: translateY(-1px);
}

.embed-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    transition: all .3s ease;
    border: 2px solid var(--input-border);
}

.embed-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.embed-container input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    transition: all .3s ease;
    border: 2px solid var(--input-border);
}

.embed-container input[type="range"]:disabled { 
    opacity: 0.5; 
}

.embed-container input[type="range"]:disabled::-webkit-slider-thumb { 
    background: var(--text-color); 
    opacity: 0.5;
    cursor: not-allowed; 
}

.embed-container input[type="range"]:disabled::-moz-range-thumb { 
    background: var(--text-color); 
    opacity: 0.5;
    cursor: not-allowed; 
}

/* Popup styles */
.popup-overlay {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important; 
    height: 100vh !important;
    background-color: var(--overlay-bg); 
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important; 
    z-index: 10000 !important;
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.popup-overlay.visible { 
    opacity: 1; 
    visibility: visible;
}

.popup-content {
    background: var(--bg-glass-card-secondary); 
    border-radius: 15px; 
    padding: 2rem;
    max-width: 500px; 
    width: 90%; 
    margin: 1rem;
    backdrop-filter: blur(10px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Conditional visibility for form elements */
.hidden-element {
    display: none !important;
}
/* Form elements styling - ALL checkboxes */
.form-checkbox {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
}

/* All checkboxes when checked - dark blue background */
.form-checkbox:checked {
    background: var(--bg-glass-card-secondary) !important;
    border-color: var(--bg-glass-card-secondary) !important;
    accent-color: var(--bg-glass-card-secondary);
}

.form-checkbox:checked::after {
    color: white !important;
}

/* All checkboxes hover effects */
.form-checkbox:hover {
    border-color: var(--bg-glass-card-secondary) !important;
}

.form-checkbox:focus {
    box-shadow: 0 0 0 2px rgba(44, 56, 76, 0.3) !important;
    outline: none;
}


/* Popup close button styling */
#closePopup, #closePopupTax, #closePopupBabavaro {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

#closePopup:hover, #closePopupTax:hover, #closePopupBabavaro:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

#closePopup:focus, #closePopupTax:focus, #closePopupBabavaro:focus {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Input field styling */
.embed-container input[type="email"],
.embed-container input[type="tel"] {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

/* Button styling */
.embed-container button {
    background: var(--chart-color-1);
    color: white;
    transition: all 0.2s ease;
}

.embed-container button:hover {
    opacity: 0.9;
}

.embed-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Property Type Toggle Switch */
.property-type-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

.property-type-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.property-type-track {
    position: relative;
    width: 120px;
    height: 32px;
    background: var(--bg-glass-card-secondary);
    border-radius: 16px;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.property-type-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 48px;
    height: 28px;
    background: var(--chart-color-4);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 2;
}

.property-type-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.property-type-label {
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.property-type-label-left {
    position: absolute;
    left: 24px;
    transform: translateX(-50%);
    color: var(--text-color);
    opacity: 1;
    text-align: center;
}

.property-type-label-right {
    position: absolute;
    right: 24px;
    transform: translateX(50%);
    color: var(--text-color);
    opacity: 1;
    text-align: center;
}

/* Toggle states */
.property-type-input:checked + .property-type-track {
    background: var(--bg-glass-card-secondary);
}

.property-type-input:checked + .property-type-track .property-type-knob {
    transform: translateX(68px);
}

.property-type-input:checked + .property-type-track .property-type-label-left {
    color: var(--text-color);
    opacity: 0.3;
    text-align: center;
}

.property-type-input:checked + .property-type-track .property-type-label-right {
    color: var(--text-color);
    opacity: 1;
    font-weight: 700;
    text-align: center;
}

/* Default state (Lakás selected) */
.property-type-input:not(:checked) + .property-type-track .property-type-label-left {
    color: var(--text-color);
    opacity: 1;
    font-weight: 700;
    text-align: center;
}

.property-type-input:not(:checked) + .property-type-track .property-type-label-right {
    color: var(--text-color);
    opacity: 0.3;
    text-align: center;
}

