#reservation-popup.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 10;
}

#reservation-popup input[type="text"], #reservation-popup input[type="email"], #reservation-popup input[type="tel"], #reservation-popup textarea, #reservation-popup input[type="number"] {
width: 100% !important;
margin: 0 !important;
}
#reservation-popup .popup-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 850px;
  max-height: 75vh;
  overflow-y: auto;
	  display: block !important;
}

.form-title {
  font-size: 1.25rem;
  color: #222;
  margin-bottom: 1.25rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.form-field {
  margin-bottom: 0.75rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  color: #444;
  font-size: 0.875rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #E36414;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

    .license-plate {
      background: #fff;
      border: 2px solid #000;
      padding: 0 8px;
      border-radius: 4px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 1rem;
    }

    .plate-country {
      background: #003399;
      color: white;
      padding: 2px 4px;
      display:flex;
      border-radius: 2px;
      font-size: 0.8rem;
      font-weight: bold;
    }

    .plate-number {
      font-size: 1.2rem;
      font-weight: bold;
      letter-spacing: 2px;
    }

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.option-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option-box:hover {
  border-color: #E36414;
}

.option-box.selected {
  border-color: #E36414;
  background: #E364140D;
}

.option-box i {
  font-size: 1.25rem;
  color: #E36414;
  margin-bottom: 0.25rem;
}

.option-box-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.option-box-price {
  color: #666;
  font-size: 0.75rem;
}

.total-price {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 6px;
  text-align: right;
}

.total-price-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E36414;
  margin-left: 0.5rem;
}

#popup-license-plate {
    border: 0 !important;
}
.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: #E36414;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 480px) {
  .popup-content {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}









/* SEARCH */
/* Container styles */
.parking-search-container {
    max-width: 100%;
}

.search-form-wrapper {
	border: 1px solid #ddd;
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 
                0 10px 15px rgba(0, 0, 0, 0.02);
}

.search-form-header {
    margin-bottom: 1.5rem;
}

.parking-search-container h2 {
    font-size: 1.5rem;
    color: black;
    font-weight: 600;
}

.search-form-header .subtitle {
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Form styles */
.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dates-container {
    display: flex;
    gap: 1rem;
    flex: 2;
}

.form-group {
    flex: 1;
}

.date-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #fff;
    height: 45px;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

/* Price summary styles */
.price-summary {
    flex: 0.4;
    min-width: 120px;
}

.price-details {
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #FF6719;
    padding: 0.75rem 1.25rem;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-row.total {
    justify-content: flex-end;
    font-weight: 700;
    font-size: 16px;
    color: #FF6719;
}

.price-row.total span:first-child {
    display: none; /* Ukrywa napis "Razem" */
}

/* Button styles */
.submit-button, .res-but {
    height: 45px;
    background: #E36414 !important;
    color: white !important;
    border: none !important;
    padding: 0 1.75rem !important;
    border-radius: 8px !important;
    font-size: 0.925rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    min-width: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.res-but {
    width: 100% !important;
}
.submit-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 900px) {
    .search-form-header h2 {
        text-align: center;
        font-size: 1.25rem;
    }
    
    .search-form-header .subtitle {
        text-align: center;
        font-size: 0.875rem;
    }

    .search-form {
        flex-direction: column;
    }

    .dates-container {
        flex-direction: column;
        width: 100%;
    }
    
    .form-group,
    .price-summary,
    .submit-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .search-form-wrapper {
        padding: 1rem;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    .form-group input[type="date"],
    .price-row.total,
    .submit-button {
        font-size: 0.875rem;
    }
}

#proceed-reservation {
    background-color: #FF6719;
    color: white;
    border-radius: 15px;
    border: 0 !important;
	margin: 0 !important;
}


.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirmation-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.confirmation-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.confirmation-content p {
    font-size: 1em;
    margin-bottom: 20px;
}

#close-confirmation-modal {
    padding: 10px 20px;
    background: #E36414;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-confirmation-modal:hover {
    background: #45a049;
}

.close-popup {
    border: 0 !important;
    font-size: 20px !important;
    color: black !important;
    background: none !important;
    padding: 0 !important;
}

.close-popup:hover {
    background: none !important;
    color: black!important;
}

.terms-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    min-height: 24px !important;
    width: 100% !important;
    margin-bottom: 20px;
}

/* Reset i style dla label */
.terms-container label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: inherit !important;
    user-select: none !important;
}

/* Reset i style dla checkbox */
.terms-container input[type="checkbox"] {
    margin: 0 !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    /* Resetujemy pozycjonowanie */
    position: static !important;
    opacity: 1 !important;
    /* Zresetuj transformacje */
    transform: none !important;
    /* Upewniamy się, że checkbox jest widoczny */
    appearance: auto !important;
    -webkit-appearance: auto !important;
    /* Zresetuj display */
    display: inline-block !important;
}

/* Tekst obok checkboxa */
.terms-container .terms-text {
    margin: 0 !important;
    padding: 0 !important;
    /* Zapobiegamy łamaniu linii */

}




/* Usuwanie domyślnego wyglądu na iOS dla pól daty */
input[type="date"],
input[type="time"] {
    appearance: none; /* Usuwa natywny styl */
    -webkit-appearance: none; /* Dla przeglądarek opartych na WebKit (iOS Safari) */
    border: 1px solid #ddd; /* Dodanie ramki */
    border-radius: 5px; /* Zaokrąglenie */
    padding: 10px; /* Wewnętrzny odstęp */
    font-size: 16px; /* Czcionka */
    width: 100%; /* Szerokość */
    box-sizing: border-box; /* Uwzględnienie paddingu w szerokości */
    background-color: #fff; /* Tło */
    color: #333; /* Kolor tekstu */
	margin: 0 !important;
}

/* Dodanie efektu hover i focus */
input[type="date"]:focus,
input[type="time"]:focus {
    border-color: #E36414; /* Kolor ramki po zaznaczeniu */
    outline: none; /* Usunięcie domyślnej obwódki */
    box-shadow: 0 0 4px rgba(227, 100, 20, 0.5); /* Delikatny cień */
}

/* Poprawka wyrównania ikonek w polach */
.input-with-icon {
    position: relative; /* Pozycjonowanie kontenera */
}

.input-with-icon i {
    position: absolute; /* Ikona pozycjonowana absolutnie */
    left: 10px; /* Odstęp od lewej */
    top: 50%; /* Wyrównanie pionowe */
    transform: translateY(-50%); /* Wyśrodkowanie */
    color: #999; /* Kolor ikony */
}

.input-with-icon input {
    padding-left: 40px; /* Dostosowanie paddingu, aby uwzględnić ikonę */
}

/* Specjalne style dla urządzeń z systemem iOS */
@supports (-webkit-touch-callout: none) {
    input[type="date"],
    input[type="time"] {
        font-family: Arial, sans-serif; /* Czcionka, która lepiej wygląda na iOS */
        line-height: 1.5; /* Wysokość linii */
    }
}
/* Stylizacje dla pól date i time */
.floating-label {
    position: relative;
    margin-bottom: 1rem;
}

.floating-label input {
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    outline: none;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

/* Widoczne placeholdery tylko na telefonach */
@media (max-width: 768px) {
    .floating-label label {
        opacity: 1;
    }

    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label {
        top: -10px;
        left: 0.5rem;
        color: #475569;
        font-size: 0.8rem;
        background: #fff;
        padding: 0 0.2rem;
    }
}

/* Dostosowanie szerokości pól time na mobilnych */
@media (max-width: 768px) {
    input[type="time"] {
        width: 100%;
    }
}

.validation-message {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}




/* POPUP */
        :root {
            --primary-color: #E36414;
            --secondary-color: #007bff;
            --text-dark: #2c3e50;
            --bg-light: #f4f6f7;
        }

        .confirmation-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(44, 62, 80, 0.7);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', 'Arial', sans-serif;
            opacity: 0;
            animation: fadeIn 0.3s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .confirmation-content {
            background: white;
            border-radius: 16px;
            max-width: 480px;
            width: 90%;
            padding: 40px;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            position: relative;
            transform: scale(0.7);
            animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        @keyframes popIn {
            from { transform: scale(0.7); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .close-confirmation-modal {
            position: absolute;
            top: 15px;
            color: black !important;
            background: none !important;
            right: 15px;
            background: none;
            border: none;
            cursor: pointer;
            opacity: 0.5;
            transition: all 0.2s ease;
        }

        .close-confirmation-modal:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

        .confirmation-content h2 {
            color: var(--primary-color);
            margin: 0 0 15px;
            font-size: 24px;
            font-weight: 600;
        }

        .confirmation-content p {
            color: var(--text-dark);
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            padding: 15px 20px;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .btn svg {
            margin-right: 10px;
            transition: transform 0.2s ease;
        }

        .btn:hover svg {
            transform: scale(1.1);
        }

        .btn-download {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-download:hover {
            background-color: #C5560F;
        }

        .btn-calendar {
            background-color: var(--bg-light);
            color: var(--text-dark);
            border: 1px solid rgba(0,0,0,0.1);
        }

        .btn-calendar:hover {
            background-color: #e7eaec;
        }

        @media (max-width: 600px) {
            .confirmation-content {
                width: 95%;
                padding: 25px;
                margin: 0 10px;
            }
        }
        
        
        .close-confirmation-modal:hover {
            background: none !important;
            color: black !important;
        }