@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Podstawowe resetowanie i style */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
}

/* Własne style dla mapy SVG */
.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.map-container img {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.map-pin {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    transform: translate(-50%, -50%);
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.25) !important;
}

.map-pin.dragging {
    cursor: move;
    transition: none !important;
    transform: translate(-50%, -50%) scale(1.15) !important;
    z-index: 100;
}

.map-container.admin-mode .map-pin {
    cursor: move;
}

/* Tooltip dla mapy */
.map-tooltip {
    position: absolute;
    background: #0B0B0B;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translate(-50%, -10px);
    z-index: 50;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0B0B0B transparent transparent transparent;
}

.map-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -15px);
}

/* Akordeon FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-content.open {
    opacity: 1;
}

/* Animacja ikony w FAQ */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-button.active .faq-icon {
    transform: rotate(180deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Kolor akcentowy w listach wyboru (select) */
select, select option {
    accent-color: #D90D30 !important;
}
select option:checked,
select option:hover,
select option:focus,
select option:active {
    background-color: #D90D30 !important;
    color: #ffffff !important;
}
.elementor-field-textual select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}
.elementor-field-textual select option:checked {
    background-color: #D90D30 !important;
    color: #ffffff !important;
}

/* Custom Select styling */
.custom-select-wrapper {
    position: relative !important;
    width: 100%;
}
.custom-select-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff !important;
    background-color: #151515 !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}
.custom-select-trigger:hover,
.custom-select-trigger.open {
    border-color: #D90D30 !important;
}

.custom-select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background-color: #111111 !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
    margin-top: 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
.custom-select-options.hidden {
    display: none !important;
}
.custom-select-option {
    padding: 12px 16px !important;
    background-color: #111111 !important;
    color: #cccccc !important;
    transition: background-color 0.2s, color 0.2s;
}
.custom-select-option:hover {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
}
.custom-select-option.active {
    background-color: #D90D30 !important;
    color: #ffffff !important;
}
.custom-select-arrow svg {
    color: #888888;
}
.custom-select-trigger.open .custom-select-arrow svg {
    color: #ffffff;
}

/* Styl dla pola radio wynajmu garażu (Modern WPForms pseudo-elements) */
div.wpforms-container-full .wpforms-field-radio input[type="radio"]:checked:before {
    border-color: #D90D30 !important;
}
div.wpforms-container-full .wpforms-field-radio input[type="radio"]:checked:after {
    background-color: #D90D30 !important;
}
div.wpforms-container-full .wpforms-field-radio input[type="radio"]:hover:before,
div.wpforms-container-full .wpforms-field-radio input[type="radio"]:focus:before {
    border-color: #D90D30 !important;
}
div.wpforms-container-full .wpforms-field-radio input[type="radio"]:focus:before {
    box-shadow: 0 0 0 2px rgba(217, 13, 48, 0.25) !important;
}
div.wpforms-container-full .wpforms-field-radio label.wpforms-field-label-inline {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Kompaktowy komunikat sukcesu WPForms */
#wpforms-23 .wpforms-confirmation-container-full {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
    padding: 14px 18px !important;
    margin-bottom: 24px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#wpforms-23 .wpforms-confirmation-container-full p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.4 !important;
}

/* Kółko checkmarka przed tekstem potwierdzenia */
#wpforms-23 .wpforms-confirmation-container-full::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #22c55e;
    color: #0b0b0b;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}