.adr-excel-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
    padding-block: 2rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.adr-excel-form *,
.adr-excel-form *::before,
.adr-excel-form *::after {
    box-sizing: border-box;
}

.adr-excel-form [data-adr-excel-form] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.adr-excel-form section,
.adr-excel-form [data-adr-excel-competitors] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adr-excel-form [data-adr-excel-competitors] {
    gap: 1.25rem;
}

.adr-excel-form h2,
.adr-excel-form h3,
.adr-excel-form h4,
.adr-excel-form p {
    margin: 0;
}

.adr-excel-form h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
}

.adr-excel-form h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.75rem;
}

.adr-excel-form h4 {
    color: #171717;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75rem;
}

.adr-excel-form .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.adr-excel-form label,
.adr-excel-form label > span {
    display: block;
}

.adr-excel-form label > span {
    margin-bottom: 0.25rem;
    color: #262626;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.adr-excel-form [data-adr-excel-form] > section:first-of-type label > span,
.adr-excel-form [data-adr-excel-form] > p {
    color: #fff;
}

.adr-excel-form input,
.adr-excel-form select {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #d4d4d4;
    border-radius: 0.25rem;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    color: #171717;
    font: inherit;
}

.adr-excel-form input:focus,
.adr-excel-form select:focus,
.adr-excel-form button:focus-visible,
.adr-excel-form a:focus-visible {
    outline: 3px solid #f87171;
    outline-offset: 2px;
}

.adr-excel-form [data-adr-excel-competitor] {
    border: 1px solid #e5e5e5;
    border-radius: 0.25rem;
    background-color: #fff;
    padding: 1rem;
    color: #171717;
    box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.adr-excel-form [data-adr-excel-competitor] > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.adr-excel-form button {
    min-height: 2.5rem;
    border: 0;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
}

.adr-excel-form [data-adr-excel-add] {
    align-self: flex-end;
    background-color: #dc2626;
}

.adr-excel-form [data-adr-excel-add]:hover {
    background-color: #262626;
}

.adr-excel-form [data-adr-excel-remove] {
    border: 1px solid #d4d4d4;
    background-color: #fff;
    color: #262626;
    font-weight: 500;
}

.adr-excel-form [data-adr-excel-remove]:hover {
    background-color: #f5f5f5;
}

.adr-excel-form button[type="submit"] {
    align-self: flex-start;
    min-height: 3rem;
    background-color: #b91c1c;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.adr-excel-form button[type="submit"]:hover {
    background-color: #991b1b;
}

.adr-excel-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.adr-excel-form a {
    color: #fecaca;
    font-weight: 500;
    text-decoration: underline;
}

.adr-excel-form > .border-green-300,
.adr-excel-form > .border-red-300,
.adr-excel-form > .border-yellow-300 {
    margin-bottom: 1.5rem;
    border: 1px solid;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

.adr-excel-form > .border-green-300 {
    border-color: #86efac;
    background-color: #f0fdf4;
    color: #14532d;
}

.adr-excel-form > .border-red-300 {
    border-color: #fca5a5;
    background-color: #fef2f2;
    color: #7f1d1d;
}

.adr-excel-form > .border-yellow-300 {
    border-color: #fde047;
    background-color: #fefce8;
    color: #713f12;
}

.adr-excel-form .hidden,
.adr-excel-form template {
    display: none;
}

@media (min-width: 48rem) {
    .adr-excel-form .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .adr-excel-form [data-adr-excel-competitor] > .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .adr-excel-form [data-adr-excel-competitor] .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
