/* ── Brave Behaviour Tracking Form Styles ── */

#bbt-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #2d3748;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Language Toggle */
.bbt-lang-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    background: #f0f4f8;
    border-bottom: 1px solid #e2e8f0;
}
.bbt-lang-btn {
    padding: 6px 16px;
    border: 2px solid #4a90d9;
    background: transparent;
    color: #4a90d9;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.bbt-lang-btn.active {
    background: #4a90d9;
    color: #fff;
}
.bbt-lang-btn:hover {
    background: #4a90d9;
    color: #fff;
}

/* Header */
.bbt-header {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: #fff;
    padding: 28px 32px;
}
.bbt-header h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    border: none;
}
.bbt-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bbt-meta-row {
    display: flex;
    gap: 10px;
    font-size: 15px;
}
.bbt-label {
    font-weight: 600;
    opacity: 0.85;
    min-width: 160px;
}
.bbt-value {
    font-weight: 400;
}

/* Fields */
#bbt-form {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bbt-field label,
.bbt-field legend {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.5;
    border: none;
    padding: 0;
}
.bbt-field input[type="text"],
.bbt-field input[type="date"],
.bbt-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.bbt-field input[type="text"]:focus,
.bbt-field input[type="date"]:focus,
.bbt-field textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
    background: #fff;
}
.bbt-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* Checkbox groups */
.bbt-field--group fieldset {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 0;
}
.bbt-field--group legend {
    font-size: 15px;
    font-weight: 600;
    padding: 0 8px;
    color: #2d3748;
}
.bbt-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14.5px;
    cursor: pointer;
    line-height: 1.5;
    border-bottom: 1px solid #f0f4f8;
}
.bbt-check-label:last-child {
    border-bottom: none;
}
.bbt-check-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #4a90d9;
    cursor: pointer;
}
.bbt-check-label:hover {
    color: #1a5276;
}

/* Intensity */
.bbt-field--intensity label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}
.bbt-intensity-wrap {
    background: #f0f4f8;
    border-radius: 10px;
    padding: 16px 20px;
}
.bbt-intensity-scale {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.bbt-intensity-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
}
.bbt-intensity-label input[type="radio"] {
    display: none;
}
.bbt-intensity-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    color: #4a5568;
    transition: all 0.2s;
    cursor: pointer;
}
.bbt-intensity-label input[type="radio"]:checked + .bbt-intensity-num {
    background: #2e86c1;
    border-color: #2e86c1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(46,134,193,0.4);
    transform: scale(1.1);
}
.bbt-intensity-label:hover .bbt-intensity-num {
    border-color: #4a90d9;
    color: #4a90d9;
}
.bbt-intensity-desc {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 10px;
    font-weight: 500;
}

/* Submit */
.bbt-submit-wrap {
    padding-top: 8px;
    text-align: center;
}
.bbt-submit {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.bbt-submit:hover {
    background: #219a52;
}
.bbt-submit:active {
    transform: scale(0.98);
}

/* Notices */
.bbt-notice {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.bbt-success {
    background: #c6f6d5;
    color: #276749;
}
.bbt-error {
    background: #fed7d7;
    color: #9b2c2c;
}

/* RTL adjustments */
#bbt-wrap[dir="rtl"] .bbt-meta-row {
    direction: rtl;
}
#bbt-wrap[dir="rtl"] .bbt-check-label {
    direction: rtl;
}
#bbt-wrap[dir="rtl"] .bbt-intensity-desc {
    direction: rtl;
}

/* Responsive */
@media (max-width: 600px) {
    #bbt-form { padding: 20px 16px; }
    .bbt-header { padding: 20px 16px; }
    .bbt-meta-row { flex-direction: column; gap: 2px; }
    .bbt-intensity-num { width: 28px; height: 28px; font-size: 12px; }
    .bbt-submit { width: 100%; }
}
