body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.overlay {
    background: rgba(0, 0, 0, .45);
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    max-width: 700px;
}

button {
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    flex-direction: column;

    &::-webkit-scrollbar {
        width: 10px;
    }

    &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        border: 2px solid rgba(255, 255, 255, 0.95);
    }

    &::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid.small-fields {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}


.modal-content label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

.form-group > label {
    margin-bottom: 1rem;
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}


.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

.error-message {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    min-height: 1.2rem;
    display: block;
}


.form-consent {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    max-width: 420px;
    margin: 1.5rem auto;
    color: #333;
}

.form-consent input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
    accent-color: #007bff;
}

.form-consent label a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-consent label a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.modal-submit {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 11;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 1.5rem;
}

.modal-submit button[type="submit"] {
    width: 80%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.modal-submit button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 12;
}

.phone-contact {
  margin-top: 1rem;
  font-size: 1rem;
  color: white;
}
.phone-contact a {
  color: white !important;
  text-decoration: underline;
}
.lead-text {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  color: white;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.lead-text p {
  margin: 0;
}

/* Status popup */
#status-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#status-popup .modal-content {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: none;
}

#status-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Popup polityki prywatności */
#privacy-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

#privacy-popup {
    background: #fff;
    color: #000;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

#privacy-popup button {
    background: #007bff;
    color: #fff;
    padding: .6rem 1.4rem;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#privacy-popup button:hover {
    background-color: #0056b3;
}


/* --- Stylizacja dla selektorów --- */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.8em auto, 100%;
    padding-right: 2.2em;
}

/* --- Stopka --- */
.main-footer {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #66b2ff;
    text-decoration: underline;
}

.everido-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: invert(100%); /* Jeśli logo jest czarne na białym tle */
}

.copyright-info {
    margin-top: 1rem;
}


/* --- Cookie Consent Banner Styles --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9); /* Ciemne tło dla banera */
    color: #fff;
    padding: 1rem 1.5rem;
    display: none; /* Domyślnie ukryty, pokazywany przez JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Upewnij się, że jest nad innymi elementami */
}

.cookie-consent-banner p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    max-width: 900px;
    text-align: center;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem; /* Odstęp między przyciskami */
}

.cookie-consent-buttons button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0; /* Usuń marginesy z ogólnych stylów button */
    transition: background-color 0.3s ease, color 0.3s ease;
}

#accept-cookies {
    background-color: #007bff;
    color: white;
}

#accept-cookies:hover {
    background-color: #0056b3;
}

#decline-cookies {
    background-color: #6c757d; /* Szary kolor */
    color: white;
}

#decline-cookies:hover {
    background-color: #5a6268;
}


/* W sekcji media query dla małych ekranów również zaktualizuj */
@media (max-width: 480px) {
  .modal-content {
    border-radius: 20px;
    &::-webkit-scrollbar {
        width: 0px;
    }
  }
  .modal-submit {
    border-radius: 20px 20px 20px 20px;
    padding: 0.75rem 1.5rem;
  }

  .overlay {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .cookie-consent-banner {
    padding: 0.8rem 1rem;
  }
  .cookie-consent-banner p {
    font-size: 0.8rem;
  }
  .cookie-consent-buttons button {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}