.fr-hidden { display: none !important; }

.fr-dropdown-custom {
    position: relative;
    width: 100%;
}

.fr-dropdown-trigger {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #374151;
    position: relative;
}

.fr-dropdown-trigger:after {
    content: "";
    border: solid #6b7280;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.fr-dropdown-custom.is-open .fr-dropdown-trigger:after {
    transform: rotate(-135deg);
}

.fr-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    z-index: 9999;
    display: none;
    max-height: 350px;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.fr-dropdown-custom.is-open .fr-dropdown-menu {
    display: flex;
}

.fr-dropdown-options {
    overflow-y: auto;
    flex: 1;
}

.fr-dropdown-item {
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.fr-dropdown-item:hover {
    background: #f3f4f6;
}

.fr-dropdown-item.is-selected {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.fr-dropdown-search-box {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 0.5rem 0.5rem;
}

.fr-dropdown-search {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%239ca3af"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1rem;
}

/* Base calculator styles */
.fr-calculator {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .fr-calculator {
        min-width: 500px;
        width: auto;
        max-width: 1000px;
    }
}

.fr-calc-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .fr-calc-row {
        grid-template-columns: 1fr;
    }
}

.fr-calc-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.fr-swap-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.fr-swap-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.fr-btn-main {
    width: 100%;
    background: #4f46e5;
    color: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.fr-btn-main:hover {
    background: #4338ca;
}

/* Modal styles */
.fr-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.fr-modal-content {
    background: #fff;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.fr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.fr-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.fr-modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
}

.fr-modal-close:hover {
    color: #111827;
}

.fr-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .fr-grid {
        grid-template-columns: 1fr;
    }
}

.fr-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.fr-route-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.fr-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 25px 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.fr-car-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    margin-bottom: 10px;
    background: #fff;
}

.fr-car-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.fr-car-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.fr-car-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.fr-car-price {
    margin-top: 5px !important;
    color: #4f46e5 !important;
    font-weight: 600;
}

.fr-advantages {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
}

.fr-advantages ul {
    margin: 0;
    padding-left: 1.25rem;
}

.fr-sticky {
    position: sticky;
    top: 20px;
}

.fr-phone-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.fr-phone-link:hover {
    color: #4f46e5;
}

.fr-form .fr-field {
    margin-bottom: 15px;
}

.fr-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.fr-form input[type="text"],
.fr-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
}

.fr-consent {
    display: flex;
    gap: 10px;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 15px 0;
}

.fr-form .fr-btn {
    width: 100%;
    background: #4f46e5;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.fr-form .fr-btn:hover {
    background: #4338ca;
}

.fr-form-status {
    margin-top: 10px;
    font-size: 0.875rem;
    text-align: center;
}
