/* LBOS Registration - Public Form Styles */

.lbos-register-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

/* Honeypot: visually hidden, accessible to screen readers via aria-hidden */
.lbos-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Fieldsets */
.lbos-fieldset {
    /* box-shadow draws a continuous border unaffected by the <legend> element */
    border: none;
    box-shadow: 0 0 0 1px #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    padding-top: 2.5rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
    position: relative;
}

.lbos-fieldset legend {
    position: absolute;
    top: 0;
    left: 1rem;
    transform: translateY(-50%);
    background: #fafafa;
    padding: 0 0.4rem;
    margin: 0;
    width: auto;
    max-width: max-content;
    white-space: nowrap;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1;
}


.lbos-fieldset-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Fields */
.lbos-field {
    margin-bottom: 1rem;
}

.lbos-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.95em;
    color: #333;
}

.lbos-field .required {
    color: #d63638;
}

.lbos-field input[type="text"],
.lbos-field input[type="email"],
.lbos-field input[type="tel"],
.lbos-field input[type="url"],
.lbos-field select,
.lbos-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lbos-field input:focus,
.lbos-field select:focus,
.lbos-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.lbos-field input[type="file"] {
    font-size: 0.9em;
    padding: 0.3rem 0;
}

.lbos-field-help {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 0.2rem;
}

.lbos-char-counter {
    display: block;
    font-size: 0.8em;
    color: #888;
    text-align: right;
    margin-top: 0.2rem;
}

/* Artist entries */
.lbos-artist-entry {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lbos-artist-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.lbos-remove-artist-btn {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
}

.lbos-remove-artist-btn:hover {
    background: #d63638;
    color: #fff;
}

/* Buttons */
.lbos-btn-primary {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.lbos-btn-primary:hover {
    background: #005a87;
}

.lbos-btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.lbos-btn-secondary {
    display: inline-block;
    background: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lbos-btn-secondary:hover {
    background: #0073aa;
    color: #fff;
}

/* Form submit area */
.lbos-form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.lbos-submit-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5rem;
}

/* Radio groups */
.lbos-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.25rem;
}
.lbos-radio-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.95em;
}
.lbos-radio-label input[type="radio"] {
    accent-color: #0073aa;
    width: 16px;
    height: 16px;
}

/* Region map hint & modal */
.lbos-map-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.25rem 0 1rem;
    background: none;
    border: none;
    padding: 0;
    color: #0073aa;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lbos-map-hint:hover { color: #005a87; }

.lbos-region-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.lbos-region-modal.lbos-open { display: flex; }

.lbos-region-modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    overflow: hidden;
    display: flex;
}
.lbos-region-modal-inner img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
}
.lbos-region-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lbos-region-modal-close:hover { background: rgba(0,0,0,0.8); }

/* Errors */
.lbos-form-errors {
    background: #fef0f0;
    border: 1px solid #d63638;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #8b0000;
}

.lbos-form-errors ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}

.lbos-form-errors li {
    margin-bottom: 0.25rem;
}

/* Confirmation modal */
.lbos-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lbos-confirm-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lbos-confirm-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0.2rem 0.5rem;
}

.lbos-confirm-modal-close:hover {
    color: #333;
}

.lbos-confirmation {
    text-align: center;
}

.lbos-confirmation h2 {
    color: #0b7cac;
    margin-bottom: 0.75rem;
}

.lbos-confirmation a {
    color: #3a2ca0;
    font-weight: 500;
}

.lbos-confirmation p {
    margin-bottom: 0.6rem;
}

.lbos-confirmation p:last-child {
    margin-bottom: 0;
}

/* Disclaimer */
.lbos-disclaimer-text {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.lbos-disclaimer-text p { margin: 0 0 0.75rem; }
.lbos-disclaimer-text p:last-child { margin-bottom: 0; }

.lbos-field-checkbox { margin-bottom: 0; }
.lbos-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.5;
}
.lbos-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa;
}

/* Payment info box */
.lbos-payment-info {
    background: #fff;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.95em;
}

/* Micro Gallery entries */
.lbos-gallery-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lbos-gallery-entry input[type="url"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lbos-gallery-entry input[type="url"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.lbos-remove-gallery-btn {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}

.lbos-remove-gallery-btn:hover {
    background: #d63638;
    color: #fff;
}

/* Additional Location entries (studio + sponsor forms both use this) */
.lbos-location-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.lbos-location-entry input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lbos-location-entry input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.lbos-remove-location-btn {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}

.lbos-remove-location-btn:hover {
    background: #d63638;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .lbos-fieldset {
        padding: 1rem;
    }

    .lbos-btn-primary {
        width: 100%;
        text-align: center;
    }
}
