/* Styles for Medlems Tilmelding plugin v0.13 */
.medlems-tilmelding-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
    width: 50%;
    margin: 0 auto 2rem;
}
.medlems-tilmelding-form label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}
.medlems-tilmelding-form label input {
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.medlems-tilmelding-form input[type="submit"] {
    grid-column: 1 / -1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}
.medlems-tilmelding-form input[type="submit"]:hover {
    background-color: #218838;
}
/* Position fields explicitly */
.medlems-tilmelding-form label:nth-of-type(1) { grid-column: 1; }
.medlems-tilmelding-form label:nth-of-type(2) { grid-column: 2; }
.medlems-tilmelding-form label:nth-of-type(3) { grid-column: 1; }
.medlems-tilmelding-form label:nth-of-type(4) { grid-column: 2; }
.medlems-tilmelding-form label:nth-of-type(5) { grid-column: 3; }
.medlems-tilmelding-form label:nth-of-type(6) { grid-column: 1; }
.medlems-tilmelding-form label:nth-of-type(7) { grid-column: 2; }
.medlems-tilmelding-form label:nth-of-type(8) { grid-column: 1 / span 3; }
.medlems-tilmelding-form label:nth-of-type(9) { grid-column: 1; }
.medlems-tilmelding-form label:nth-of-type(10) { grid-column: 2; }

@media (max-width: 768px) {
    .medlems-tilmelding-form {
        width: 90%;
        grid-template-columns: 1fr;
    }
    .medlems-tilmelding-form label:nth-of-type(1),
    .medlems-tilmelding-form label:nth-of-type(2),
    .medlems-tilmelding-form label:nth-of-type(3),
    .medlems-tilmelding-form label:nth-of-type(4),
    .medlems-tilmelding-form label:nth-of-type(5),
    .medlems-tilmelding-form label:nth-of-type(6),
    .medlems-tilmelding-form label:nth-of-type(7),
    .medlems-tilmelding-form label:nth-of-type(8),
    .medlems-tilmelding-form label:nth-of-type(9),
    .medlems-tilmelding-form label:nth-of-type(10) {
        grid-column: 1 !important;
    }
}

.medlems-tilmelding-form label {
    color: #fff;
}
.medlems-tilmelding-form label input {
    color: #000;
}
