/*
 * TexArrest Annotations — Styles
 * Used on both front-end form/display and admin pages.
 */

/* ── Front-end form ──────────────────────────────────────────── */
.ta-annotation-form-wrap {
    background: #fff;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 24px 0;
    font-family: inherit;
    color: #1f2933;
}

.ta-form-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.ta-disclaimer {
    background: #fff6df;
    border-left: 4px solid #d99700;
    padding: 10px 12px;
    margin: 0 0 12px;
    font-size: 0.92rem;
}

.ta-disclaimer-sub {
    font-size: 0.9rem;
    color: #445161;
    margin: 0;
}

.ta-form-collapsible {
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.ta-form-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0b5f86;
    line-height: 1.4;
}

.ta-form-summary::-webkit-details-marker {
    display: none;
}

.ta-form-summary::before {
    content: "+";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #0b5f86;
    color: #0b5f86;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.ta-form-collapsible[open] .ta-form-summary::before {
    content: "-";
}

.ta-form-collapsible-content {
    padding-top: 14px;
}

.ta-field {
    margin-bottom: 14px;
}

.ta-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a2430;
}

.ta-field input[type="text"],
.ta-field input[type="email"],
.ta-field input[type="tel"],
.ta-field input[type="url"],
.ta-field select,
.ta-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d0da;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
}

.ta-field input[type="text"]:focus,
.ta-field input[type="email"]:focus,
.ta-field input[type="tel"]:focus,
.ta-field input[type="url"]:focus,
.ta-field select:focus,
.ta-field textarea:focus {
    outline: 2px solid #2f83b7;
    outline-offset: 0;
    border-color: #2f83b7;
}

.ta-field input[type="file"] {
    font-size: 0.95rem;
    max-width: 560px;
}

.ta-field-note {
    display: block;
    font-size: 0.82em;
    color: #777;
    margin-top: 4px;
}

.ta-annotation-form-wrap .ta-attestation label,
.ta-annotation-form-wrap .ta-record-url-toggle label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 0;
    color: #1a2430;
}

.ta-annotation-form-wrap .ta-attestation input[type="checkbox"],
.ta-annotation-form-wrap .ta-record-url-toggle input[type="checkbox"] {
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.ta-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:500;
}

.ta-check input[type="checkbox"]{
  margin-top:3px;
  flex:0 0 auto;
}

.ta-annotation-form-wrap label br{
  display:none !important;
}

.ta-required {
    color: #c00;
}

.ta-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.15s;
}

.ta-submit-btn:hover,
.ta-submit-btn:focus {
    background: #005a87;
}

.ta-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ta-form-message {
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.95em;
}

.ta-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.ta-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

@media (max-width: 600px) {
    .ta-annotation-form-wrap {
        padding: 16px;
    }
}

/* ── Display panel ───────────────────────────────────────────── */
.ta-annotation-display {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px 0;
    background: #fff;
}

.ta-annotation-display-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.ta-annotation-display-item {
    border-top: 1px solid #eee;
    padding: 12px 0;
}

.ta-annotation-status {
    font-weight: 600;
    font-size: 1em;
}

.ta-annotation-date {
    color: #777;
    font-size: 0.88em;
    margin-top: 4px;
}

.ta-annotation-disclaimers {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.82em;
    color: #666;
}

.ta-annotation-disclaimers p {
    margin: 4px 0;
}

/* ── Admin ───────────────────────────────────────────────────── */
.ta-admin-wrap .ta-meta-table th {
    width: 200px;
    vertical-align: top;
}

.ta-admin-wrap .ta-meta-table td {
    word-break: break-all;
}
