/* ===========================================
   STYLE DLA SAMOCHODÓW
   =========================================== */

/* Kontener główny */
.cars-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Style dla filtrów --- */
.cars-filters {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cars-filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end; /* Wyrównaj elementy do dołu */
}

.cars-filter-form .filter-row:last-child {
    margin-bottom: 0;
}

.cars-filter-form .filter-item {
    flex: 1 1 auto; /* Pozwól elementom rosnąć i kurczyć się */
    display: flex;
    flex-direction: column;
    min-width: 180px; /* Minimalna szerokość dla lepszej responsywności */
}

/* Specjalne style dla zakresów, aby były w jednej linii */
.cars-filter-form .filter-item.price-range,
.cars-filter-form .filter-item.year-range {
    flex-direction: row;
    gap: 10px;
}

/* Ustawienie, aby pola wewnątrz zakresów dzieliły przestrzeń */
.cars-filter-form .filter-item.price-range input,
.cars-filter-form .filter-item.year-range input {
    flex: 1;
}

/* Ustawienie dla pojedynczego pola przebiegu */
.cars-filter-form .filter-item.mileage {
    flex: 1 1 auto;
}

.cars-filter-form .filter-item.actions {
    flex-grow: 1; /* Pozwól rosnąć, aby "wepchnąć" przycisk w prawo */
    text-align: right;
    min-width: auto;
}

.cars-filter-form select,
.cars-filter-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.cars-filter-form .reset-filters-btn {
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Zapobiegaj łamaniu tekstu */
}

.cars-filter-form .reset-filters-btn:hover {
    background-color: #005a87;
}

/* Media query dla mniejszych ekranów */
@media (max-width: 768px) {
    .cars-filter-form .filter-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .cars-filter-form .filter-item.actions {
        text-align: left;
    }
    
    /* Zapewnienie jednej kolumny na tabletach i telefonach */
    .elementor-widget-cars_list .cars-grid-layout,
    body .cars-grid-layout {
        grid-template-columns: 1fr !important;
    }
}


/* --- Układ siatki --- */
.cars-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Domyślnie 3 kolumny */
    gap: 20px;
}

/* Modyfikatory dla różnej liczby kolumn */
.cars-grid-layout.columns-1 { grid-template-columns: 1fr; }
.cars-grid-layout.columns-2 { grid-template-columns: repeat(2, 1fr); }
.cars-grid-layout.columns-3 { grid-template-columns: repeat(3, 1fr); }
.cars-grid-layout.columns-4 { grid-template-columns: repeat(4, 1fr); }


/* --- Układ listy --- */
.cars-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cars-list-layout .car-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cars-list-layout .car-image {
    flex: 0 0 200px;
}

.cars-list-layout .car-info {
    flex: 1;
    padding: 20px;
}

/* Element samochodu */
.car-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.car-image {
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.car-item:hover .car-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.car-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.car-info h3 a:hover {
    color: #007cba;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.car-specs .spec {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
}

.car-price {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.car-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.car-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.car-link:hover {
    background: #005a87;
    color: white;
}

/* Paginacja */
.cars-pagination {
    margin-top: 30px;
    text-align: center;
}

.cars-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.cars-pagination .page-numbers:hover,
.cars-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Szczegóły samochodu */
.car-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.car-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.car-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.car-price-large {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
}

/* Galeria */
.car-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    text-align: center;
    margin-bottom: 15px;
}

.gallery-main .main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbnails .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-thumbnails .thumbnail:hover {
    border-color: #007cba;
}

/* Sekcje danych */
.car-data-section,
.car-equipment-section,
.car-safety-section,
.car-multimedia-section,
.car-contact-section,
.car-description-section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.car-data-section h2,
.car-equipment-section h2,
.car-safety-section h2,
.car-multimedia-section h2,
.car-contact-section h2,
.car-description-section h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.car-data-table {
    width: 100%;
    border-collapse: collapse;
}

.car-data-table th,
.car-data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.car-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.car-data-table td {
    color: #666;
}

.equipment-list,
.safety-list,
.multimedia-list {
    line-height: 1.6;
    color: #666;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #007cba;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.car-description {
    line-height: 1.6;
    color: #666;
}

/* Responsywność */
@media (max-width: 768px) {
    .cars-list-container,
    .car-details-container {
        padding: 10px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row select,
    .filter-row input {
        min-width: auto;
    }
    
    .cars-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .cars-list-layout .car-item {
        flex-direction: column;
    }
    
    .cars-list-layout .car-image {
        flex: none;
    }
    
    .car-header h1 {
        font-size: 24px;
    }
    
    .car-price-large {
        font-size: 28px;
    }
    
    .gallery-thumbnails {
        justify-content: flex-start;
    }
    
    .car-data-table th,
    .car-data-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .car-data-table th {
        background: none;
        font-weight: bold;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .car-specs {
        flex-direction: column;
        gap: 5px;
    }
    
    .car-specs .spec {
        text-align: center;
    }
}

/* ===========================================
   KOMUNIKAT O BRAKU WYNIKÓW WYSZUKIWANIA
   =========================================== */

.cars-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-results-message h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-results-message p {
    color: #888;
    margin-bottom: 25px;
    font-size: 16px;
}

.search-suggestions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-suggestions h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li:before {
    content: "💡 ";
    margin-right: 8px;
}

.reset-filters-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.reset-filters-btn:hover {
    background: #005a87;
}

@media (max-width: 768px) {
    .cars-no-results {
        padding: 30px 15px;
    }
    
    .search-suggestions {
        margin: 15px 0;
    }
    
    .no-results-message h3 {
        font-size: 20px;
    }
}

.car-additional-info-widget .car-additional-content p {
    display: block !important;
    margin-bottom: 1em !important;
}

/* Style dla strony pojedynczego samochodu */
.elementor-widget-car_basic_info .car-basic-info-grid {
    display: grid;
}

/* ===========================================
   FORMULARZ ZGŁASZANIA SAMOCHODÓW
   =========================================== */

.car-submission-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.car-submission-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Komunikaty sukcesu i błędów */
.car-submission-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.car-submission-success h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.car-submission-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.car-submission-error h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

/* Sekcje formularza - podobne do filtrów */
.car-submission-form .form-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.car-submission-form .form-section legend {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    border: none;
}

/* Rzędy formularza - podobne do filter-row */
.car-submission-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.car-submission-form .form-row:last-child {
    margin-bottom: 0;
}

/* Grupy pól - podobne do filter-item */
.car-submission-form .form-group {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.car-submission-form .form-group.full-width {
    flex: 1 1 100%;
    min-width: 100%;
}

.car-submission-form .form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: auto;
}

/* Etykiety */
.car-submission-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.car-submission-form .checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

/* Pola formularza - takie same jak w filtrach */
.car-submission-form input[type="text"],
.car-submission-form input[type="number"],
.car-submission-form input[type="tel"],
.car-submission-form input[type="email"],
.car-submission-form select,
.car-submission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.car-submission-form input[type="text"]:focus,
.car-submission-form input[type="number"]:focus,
.car-submission-form input[type="tel"]:focus,
.car-submission-form input[type="email"]:focus,
.car-submission-form select:focus,
.car-submission-form textarea:focus {
    outline: none;
    border-color: #007cba;
}

/* Checkbox */
.car-submission-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
    accent-color: #007cba;
}

/* Pole pliku */
.car-submission-form input[type="file"] {
    padding: 8px;
    background: white;
    border: 1px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.car-submission-form input[type="file"]:hover {
    border-color: #007cba;
}

/* Teksty pomocnicze */
.car-submission-form small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

/* Textarea */
.car-submission-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.4;
}

/* Przycisk submit - podobny do reset-filters-btn */
.car-submission-form .form-submit {
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: 20px;
}

.car-submission-form .submit-car-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.car-submission-form .submit-car-btn:hover {
    background-color: #005a87;
}

/* Specjalne style dla zakresów - podobne do wyszukiwarki */
.car-submission-form .form-group.price-range,
.car-submission-form .form-group.year-range {
    flex-direction: row;
    gap: 10px;
}

.car-submission-form .form-group.price-range input,
.car-submission-form .form-group.year-range input {
    flex: 1;
}

/* Responsywność dla formularza - podobna do filtrów */
@media (max-width: 768px) {
    .car-submission-form-container {
        padding: 10px;
    }
    
    .car-submission-form-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .car-submission-form .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .car-submission-form .form-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .car-submission-form .form-group {
        min-width: 100%;
    }
    
    .car-submission-form .form-group.checkbox-group {
        flex-direction: row;
        min-width: auto;
    }
    
    .car-submission-form .submit-car-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Zachowaj poziome układy zakresów nawet na mobile */
    .car-submission-form .form-group.price-range,
    .car-submission-form .form-group.year-range {
        flex-direction: row;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .car-submission-form-container h2 {
        font-size: 20px;
    }
    
    .car-submission-form .form-section legend {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* ===========================================
   STYLE DLA WYNAJMU SAMOCHODÓW
   =========================================== */

/* Filtry wynajmu */
.car-rental-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rental-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.rental-filter-form .filter-group {
    flex: 1;
    min-width: 200px;
}

.rental-filter-form .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.rental-filter-form .filter-group input,
.rental-filter-form .filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rental-filter-form .filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-submit-btn,
.filter-reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-submit-btn {
    background: #007cba;
    color: white;
}

.filter-submit-btn:hover {
    background: #005a87;
}

.filter-reset-btn {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.filter-reset-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Lista samochodów do wynajmu */
.car-rental-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.rental-grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rental-list-layout {
    grid-template-columns: 1fr;
}

.car-rental-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-rental-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.car-rental-image {
    position: relative;
    overflow: hidden;
}

.car-rental-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-rental-item:hover .car-rental-image img {
    transform: scale(1.05);
}

.car-rental-content {
    padding: 20px;
}

.car-rental-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.car-rental-title a {
    color: #333;
    text-decoration: none;
}

.car-rental-title a:hover {
    color: #007cba;
}

.car-rental-basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.car-rental-basic-info span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Cennik */
.car-rental-pricing {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.pricing-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.price-service-client,
.price-regular-client {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.price-service-client {
    color: #28a745;
    font-weight: 600;
}

.price-regular-client {
    color: #6c757d;
}

.price-label {
    font-size: 14px;
}

.price-value {
    font-weight: 600;
}

/* Szczegóły */
.car-rental-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-item {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
}

/* Akcje */
.car-rental-actions {
    display: flex;
    gap: 10px;
}

.rental-inquiry-btn,
.rental-details-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.rental-inquiry-btn {
    background: #007cba;
    color: white;
}

.rental-inquiry-btn:hover {
    background: #005a87;
}

.rental-details-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.rental-details-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Brak wyników */
.car-rental-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.car-rental-no-results h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.car-rental-no-results p {
    color: #6c757d;
}

/* Paginacja */
.car-rental-pagination {
    text-align: center;
    margin-top: 30px;
}

.car-rental-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.car-rental-pagination .page-numbers:hover,
.car-rental-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Modal zapytania o wynajem */
.rental-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.rental-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rental-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.rental-modal-header h3 {
    margin: 0;
    color: #333;
}

.rental-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-modal-close:hover {
    color: #333;
}

.rental-modal-body {
    padding: 20px;
}

#rental-inquiry-form .form-group {
    margin-bottom: 20px;
}

#rental-inquiry-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#rental-inquiry-form input,
#rental-inquiry-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#rental-inquiry-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-inquiry-btn,
.cancel-inquiry-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-inquiry-btn {
    background: #007cba;
    color: white;
}

.submit-inquiry-btn:hover {
    background: #005a87;
}

.submit-inquiry-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.cancel-inquiry-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.cancel-inquiry-btn:hover {
    background: #e9ecef;
}

/* Komunikaty w modalu */
.inquiry-success,
.inquiry-error {
    text-align: center;
    padding: 20px;
}

.inquiry-success h4 {
    color: #28a745;
    margin-bottom: 15px;
}

.inquiry-error h4 {
    color: #dc3545;
    margin-bottom: 15px;
}

.close-modal-btn,
.retry-inquiry-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}

.close-modal-btn {
    background: #28a745;
    color: white;
}

.close-modal-btn:hover {
    background: #218838;
}

.retry-inquiry-btn {
    background: #dc3545;
    color: white;
}

.retry-inquiry-btn:hover {
    background: #c82333;
}

/* Responsywność dla wynajmu */
@media (max-width: 768px) {
    .rental-grid-layout {
        grid-template-columns: 1fr !important;
    }
    
    .rental-filter-form {
        flex-direction: column;
    }
    
    .rental-filter-form .filter-group {
        margin-bottom: 15px;
    }
    
    .rental-filter-form .filter-group input,
    .rental-filter-form .filter-group select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .rental-filter-form .filter-actions {
        flex-direction: column;
    }
    
    .filter-submit-btn,
    .filter-reset-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .rental-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-inquiry-btn,
    .cancel-inquiry-btn {
        width: 100%;
    }
}

