/* The Search Registration Form — Styles */

.tsr-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Notices */
.tsr-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
}
.tsr-notice-success {
    background: #edfaef;
    border: 1px solid #68de7c;
    color: #1a5c27;
}
.tsr-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Sections */
.tsr-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.tsr-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.tsr-sub-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 16px;
}

/* Rows & fields */
.tsr-row { display: flex; gap: 16px; }
.tsr-two-col > .tsr-field { flex: 1; min-width: 0; }
.tsr-field { margin-bottom: 16px; }
.tsr-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.tsr-required { color: #dc2626; }

/* Inputs */
.tsr-form-wrap input[type="text"],
.tsr-form-wrap input[type="email"],
.tsr-form-wrap input[type="tel"],
.tsr-form-wrap select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
    appearance: auto;
}
.tsr-form-wrap input:focus,
.tsr-form-wrap select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Radio groups */
.tsr-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.tsr-radio-group--stacked {
    flex-direction: column;
    gap: 10px;
}
.tsr-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}
.tsr-radio-label input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

/* Consent blocks */
.tsr-consent-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.tsr-consent-block p {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.65;
}
.tsr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    line-height: 1.5;
}
.tsr-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
}

/* Help text */
.tsr-help {
    font-size: 14px;
    color: #6b7280;
    margin: -6px 0 12px;
    line-height: 1.55;
}

/* Submit */
.tsr-submit-wrap {
    margin-top: 8px;
    text-align: center;
}
.tsr-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.tsr-submit-btn:hover:not(:disabled) { background: #1d4ed8; }
.tsr-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.tsr-submit-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* Slide-in animation for conditional sections */
@keyframes tsrSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tsr-slide-in { animation: tsrSlideIn 0.25s ease forwards; }

/* Responsive */
@media (max-width: 600px) {
    .tsr-row.tsr-two-col { flex-direction: column; gap: 0; }
    .tsr-section { padding: 18px 16px; }
}
