/* Public booking form - sits directly in the page (the theme already boxes the content) */
.archery-tb-widget {
    max-width: 640px;
    margin: 0;
    padding: 0;
}

.archery-tb-title {
    margin: 0 0 10px;
}

.archery-tb-facts {
    list-style: none;
    margin: 0 0 16px;
    padding: 4px 0 4px 14px;
    border-left: 4px solid #37474f;
    font-size: 15px;
    color: #333;
}

.archery-tb-facts li {
    margin: 4px 0;
}

.archery-tb-intro {
    font-size: 14px;
    color: #555;
}

.archery-tb-closed {
    margin: 0;
    font-weight: 600;
    color: #37474f;
}

.archery-tb-widget label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
    font-size: 15px;
    color: #222;
}

.archery-tb-widget input[type="text"],
.archery-tb-widget input[type="email"],
.archery-tb-widget input[type="tel"],
.archery-tb-widget select,
.archery-tb-widget textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-weight: 400;
}

.archery-tb-widget textarea {
    resize: vertical;
}

.archery-tb-choice {
    border: none;
    margin: 0 0 4px;
    padding: 0;
}

.archery-tb-choice legend {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.archery-tb-widget label.archery-tb-radio,
.archery-tb-widget label.archery-tb-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    margin: 8px 0;
}

.archery-tb-radio input,
.archery-tb-check input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.archery-tb-fee-line {
    margin: 12px 0 0;
    font-size: 15px;
}

/* Honeypot, kept off-screen rather than display:none so bots still fill it */
.archery-tb-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.archery-tb-btn-row {
    margin-top: 20px;
}

.archery-tb-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.archery-tb-btn:active {
    transform: scale(0.98);
}

.archery-tb-btn-submit {
    background: #37474f;
}

.archery-tb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.archery-tb-message {
    margin-top: 16px;
    font-size: 15px;
    text-align: center;
    min-height: 20px;
}

.archery-tb-message.success {
    color: #2e7d32;
    font-weight: 600;
}

.archery-tb-message.error {
    color: #c62828;
    font-weight: 600;
}

.archery-tb-result-title {
    margin-top: 0;
    color: #2e7d32;
}

.archery-tb-bank {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    margin: 12px 0;
}

.archery-tb-bank th,
.archery-tb-bank td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.archery-tb-bank th {
    width: 40%;
    color: #555;
    font-weight: 600;
}

/* Entry list + committee board */
.archery-tb-board {
    max-width: 760px;
    margin: 0;
}

.archery-tb-board h3 {
    margin: 24px 0 12px;
}

.archery-tb-subtle {
    color: #555;
    font-size: 14px;
}

.archery-tb-empty {
    color: #666;
    font-style: italic;
}

.archery-tb-table-wrap {
    overflow-x: auto;
}

.archery-tb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.archery-tb-table th,
.archery-tb-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.archery-tb-table thead th {
    background: #37474f;
    color: #fff;
}

.archery-tb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.archery-tb-tabs a {
    padding: 8px 14px;
    border-radius: 8px;
    background: #eceff1;
    color: #37474f;
    text-decoration: none;
    font-weight: 600;
}

.archery-tb-tabs a.is-active {
    background: #37474f;
    color: #fff;
}

.archery-tb-summary {
    font-size: 15px;
}

.archery-tb-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.archery-tb-notice-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.archery-tb-notice-error {
    background: #ffebee;
    color: #c62828;
}

.archery-tb-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 4px solid #f9a825;
}

.archery-tb-card-confirmed { border-left-color: #2e7d32; }
.archery-tb-card-reserve   { border-left-color: #6a1b9a; }
.archery-tb-card-interest  { border-left-color: #1565c0; }
.archery-tb-card-cancelled { border-left-color: #9e9e9e; opacity: 0.8; }

.archery-tb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.archery-tb-date {
    font-size: 13px;
    color: #666;
}

.archery-tb-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 14px;
    color: #444;
}

.archery-tb-notes {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}

.archery-tb-status {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
}

.archery-tb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.archery-tb-btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    background: #546e7a;
}

.archery-tb-btn-neutral     { background: #37474f; }
.archery-tb-action-confirm  { background: #2e7d32; }
.archery-tb-action-offer    { background: #1565c0; }
.archery-tb-action-cancel   { background: #c62828; }

.archery-tb-section {
    margin-top: 24px;
}

.archery-tb-section summary {
    font-size: 1.17em;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
}

/* Long email addresses / club names must wrap rather than widen the page on phones */
.archery-tb-widget,
.archery-tb-board {
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .archery-tb-card-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* Entry list: one card per archer on phones instead of a 4-column table */
@media (max-width: 600px) {
    .archery-tb-table thead {
        display: none;
    }
    .archery-tb-table,
    .archery-tb-table tbody,
    .archery-tb-table tr,
    .archery-tb-table td {
        display: block;
        width: auto;
    }
    .archery-tb-table tr {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-left: 4px solid #2e7d32;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .archery-tb-table td {
        border: none;
        padding: 2px 0;
        font-size: 14px;
        color: #444;
    }
    .archery-tb-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #666;
    }
    .archery-tb-table td:first-child {
        font-size: 16px;
        font-weight: 700;
        color: #222;
    }
    .archery-tb-table td:first-child::before {
        content: none;
    }
}
