* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styl podstawowy */
body, html {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    height: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Nawigacja */
nav {
    background-color: white;
    padding: 10px 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar-brand {
    font-weight: bold;
    font-size: 24px;
    color: #004a99;
    text-decoration: none;
}

.slogan {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #004a99;
}

/* Styl dla menu nawigacyjnego */
.navbar-menu {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 20px;
}

.navbar-menu li a {
    font-size: 14px;
    color: #004a99;
    text-decoration: none;
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-menu li a:hover {
    background-color: rgba(0, 74, 153, 0.1);
    color: #004a99;
}

.content{
    max-width: 100%;
    margin: 100px 10px 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex: 1;
}

.promo-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 40px 0;
    border-bottom: 2px solid #e0e0e0;
}

.promo-text {
    max-width: 500px;
}

.promo-text h1 {
    font-size: 36px;
    line-height: 1.3;
    color: #000;
    margin-bottom: 20px;
}

.promo-text .highlight {
    color: #007bff;
}

.promo-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.promo-image .image-container {
    width: 400px;
}

.mechanic-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Sekcja cech */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px;
    background-color: #f0f0f0;
    text-align: center;
  }
  
  .features .feature {
    padding: 20px;
  }
  
  .features i {
    font-size: 3rem;
    color: #1e90ff;
  }
  
  .features h3 {
    margin-top: 10px;
    font-size: 1.5rem;
  }

.form-container {
    margin-top: 40px;
    margin-bottom: 50px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.error-messages {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.input-field,
.input-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 16px;
}

.input-textarea {
    resize: vertical;
    height: 100px;
}

.submit-button {
    display: inline-block;
    width: 100%;
    background-color: #007bff;
    color: #fff;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.submit-button:hover {
    background-color: #0056b3;
}

.g-recaptcha {
    margin: 15px 0;
}

.back-button {
    display: inline-block;
    background-color: white;
    color: #1c7ccd;
    padding: 10px 10px;
    border: 1px solid #1c7ccd;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    max-width: 200px;
    margin-left: 10px;
  }
  
  .back-button:hover {
    background-color: rgb(194, 228, 255);
  }

/* Stopka */
footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #004a99;
    color: white;
    position: relative;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
}

/* Dla ekranów o szerokości maksymalnie 768px (urządzenia mobilne) */
@media (max-width: 768px) {
    nav {
        padding: 10px 15px;
    }

    .navbar-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .slogan {
        margin-left: 0;
        margin-top: 5px;
    }

    .navbar-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    .navbar-menu.show {
        display: flex;
        opacity: 1;
    }

    .navbar-menu li {
        width: 100%;
        text-align: left;
        margin-left: 0;
        border-bottom: 1px solid #eee;
    }

    .navbar-menu li a {
        padding: 15px;
        display: block;
        font-size: 16px;
        color: #004a99;
        background-color: transparent;
        border: none;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .navbar-menu li a:hover {
        background-color: rgba(0, 74, 153, 0.1);
        color: #004a99;
    }

    .promo-section {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    .promo-text {
        max-width: 100%;
    }

    .promo-text h1 {
        font-size: 28px;
    }

    .promo-text p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }

    .promo-image .image-container {
        width: 100%;
        max-width: 300px; /* Maksymalna szerokość zdjęcia na telefonie */
        margin-top: 20px;
    }
}


@media (min-width: 769px) {
    .navbar-menu li a {
        font-size: 18px;
    }

    footer {
        padding: 25px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .promo-section {
        flex-direction: column;
        padding: 30px 0;
        text-align: center;
    }

    .promo-text {
        max-width: 80%;
    }

    .promo-text h1 {
        font-size: 32px;
    }

    .promo-text p {
        font-size: 17px;
    }

    .cta-button {
        font-size: 17px;
        padding: 10px 22px;
    }

    .promo-image .image-container {
        width: 350px;
        margin-top: 20px;
    }
}