/* "Own this business?" (app/business.html). Card, labels and buttons
   come from styles.css / request.css; these are the page's own pieces. */

.business-claim-main {
    max-width: 560px;
}

.business-claim-card {
    max-width: none;
    margin-top: 18px;
    box-shadow: none;
}

.business-claim-input {
    width: 100%;
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
    padding: 10px 11px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}

.business-claim-input:focus {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

/* Yes / no and pick-one questions: big enough to tap. */
.business-claim-choices {
    border: none;
    /* Space between one question's switch and the next question. */
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.business-claim-choices legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    /* The switch questions read a size up from the other labels. */
    font-size: 0.86rem;
    line-height: 1.3;
}

/* City, State and ZIP code on one row under the street address. */
.business-claim-place {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 0 10px;
}

/* Phones: City and State, then ZIP code on its own row. */
@media (max-width: 420px) {
    .business-claim-place {
        grid-template-columns: minmax(0, 1fr) 5.5em;
    }

    .business-claim-place > div:last-child {
        grid-column: 1 / -1;
    }
}

.business-claim-place input[name="state"] {
    text-transform: uppercase;
}

/* The input labels on the form, the same size as the switch questions. */
.business-claim-card label.field-label {
    font-size: 0.86rem;
    line-height: 1.3;
}

/* Space between the question and its switch. */
.business-claim-choices .business-claim-switch {
    margin-top: 10px;
}

/* Pick one: a pill switch, the chosen side filled (like Business view |
   Public view on listing pages). The radio stays for keyboards and
   screen readers, drawn as nothing; its <span> is the button. */
.business-claim-switch {
    display: inline-flex;
    max-width: 100%;
    border: 1.5px solid var(--color-blue);
    border-radius: 999px;
    overflow: hidden;
}

.business-claim-switch label {
    position: relative;
    display: flex;
    /* Its own width; when space is short a choice wraps, nothing runs
       off the card. */
    flex: 0 1 auto;
    cursor: pointer;
}

.business-claim-switch span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 14px;
    background: var(--paper);
    color: var(--color-blue);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: center;
}

.business-claim-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.business-claim-switch input:checked + span {
    background: var(--color-blue);
    color: var(--on-dark);
}

.business-claim-switch input:focus-visible + span {
    outline: 2px solid var(--focus);
    outline-offset: -4px;
}

/* The smallest phones: tighter, so three choices still fit. */
@media (max-width: 359px) {
    .business-claim-switch span {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
}

.business-claim-switch label + label {
    border-left: 1.5px solid var(--color-blue);
}

.business-claim-status {
    margin: 12px 0 0;
    color: var(--color-orange-dark);
    font-size: 0.92rem;
}

.business-claim-words-label {
    margin: 4px 0 8px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.86rem;
}

/* "Tap words to copy", just above them. */
.business-claim-tap {
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

/* The three words, in the site's yellow like the unlock page's: one button
   that copies them. Each word stays whole: one box per word, wrapping when
   three don't fit across. */
.business-claim-words {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.business-claim-word {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1.5px solid var(--color-yellow);
    background: rgba(246, 174, 45, 0.25);
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-label);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.business-claim-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}

/* "Already have three words?": under the form, then three boxes. */
.business-claim-have {
    display: block;
    width: 100%;
    margin-top: 14px;
}

.business-claim-word-row {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.business-claim-word-row legend {
    padding: 0;
}

.business-claim-answer {
    margin: 12px 0 0;
    font-size: 0.95rem;
    color: var(--ink);
}

/* "Add your business" (app/business-add.html): the admin's Add listing
   fields (admin-listings.css) sit straight in the card. */
.business-add-card .admin-add-form {
    padding: 0 0 12px;
}

/* "Business policy" under the subtitle: the listing rules (about-businesses.html). */
.business-claim-rules {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--ink);
}

/* Yes / no boxes on "Add your business" (Business type, No website): sliding
   toggles. The admin's own Add listing keeps its check boxes. */
.business-add-card input[type="checkbox"] {
    appearance: none;
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    margin: 0;
    border-radius: 999px;
    background: var(--rule-strong);
    cursor: pointer;
    transition: background 0.15s;
}

.business-add-card input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--paper-raised);
    transition: transform 0.15s;
}

.business-add-card input[type="checkbox"]:checked {
    background: var(--color-blue);
}

.business-add-card input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

.business-add-card input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.business-add-card .admin-add-bool {
    gap: 10px;
    min-height: 32px;
}
