.starcount-form {
    max-width: 760px;
    margin: 20px auto;
    padding: 20px;
}

.starcount-form .form-group {
    margin-bottom: 18px;
}

.starcount-form label,
.starcount-form legend {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.starcount-form input[type="text"],
.starcount-form input[type="date"],
.starcount-form input[type="time"],
.starcount-form input[type="number"] {
    width: 100%;
    max-width: 350px;
    padding: 8px;
    box-sizing: border-box;
}

.starcount-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.starcount-form .form-row .form-group {
    flex: 1 1 220px;
}

/* MAPA */

#starcount-map {
    width: 100%;
    height: 420px;
    margin: 8px 0;
}

@media (max-width: 600px) {
    #starcount-map {
        height: 350px;
    }
}

/* POZOSTAŁE */

.starcount-form fieldset {
    margin: 20px 0;
    padding: 15px;
}

.coordinates {
    margin-top: 10px;
}

.starcount-error {
    min-height: 1.5em;
    font-weight: bold;
}

.starcount-form button[type="submit"] {
    padding: 10px 20px;
    cursor: pointer;
}


/* =====================================================
   TRZY GWIAZDOZBIORY
   ===================================================== */

.constellation-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.constellation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Każdy obraz dostaje dokładnie tyle samo miejsca */

.constellation-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.constellation-image img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
}

/* Pola zliczeń zawsze zaczynają się w tym samym miejscu */

.constellation-card label {
    display: block;
    min-height: 42px;
}

.constellation-card input[type="number"] {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}


/* =====================================================
   TELEFON
   ===================================================== */

@media (max-width: 700px) {

    .constellation-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .constellation-image {
        height: auto;
        min-height: 250px;
    }

    .constellation-image img {
        max-width: 100%;
        max-height: none;
    }

}


.starcount-banner {
    width: 100%;
    margin: 0 0 25px 0;
}

.starcount-banner img {
    display: block;
    width: 100%;
    height: auto;
}