* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7f6;
    color: #1f2937;
}

.builder-shell {
    display: flex;
    min-height: calc(100vh - 120px);
}

.sidebar {
    width: 250px;
    background: #0f766e;
    color: white;
    padding: 25px;
}

.sidebar-logo {
    width: 70px;
    margin-bottom: 15px;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.builder-main {
    flex: 1;
    padding: 30px;
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.builder-header h1 {
    color: #0f766e;
}

.builder-header p {
    color: #64748b;
    margin-top: 6px;
}

.builder-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.builder-card h2 {
    margin-bottom: 18px;
    color: #0f766e;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

.save-btn,
.add-btn {
    background: #0f766e;
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.question-card {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    background: #f9fafb;
}

.question-card h3 {
    color: #0f766e;
    margin-bottom: 12px;
}

.choice-box {
    display: none;
}

.remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 800px) {
    .builder-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .builder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Respondent Information Settings */

.section-note {
    margin: -6px 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.builder-card label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}

.builder-card select,
.builder-card input,
.builder-card textarea {
    margin-bottom: 10px;
}

#nameFieldStatus,
#emailFieldStatus,
#phoneFieldStatus,
#groupFieldStatus {
    border-left: 4px solid #0f766e;
    background: #f8fafc;
}

/* ===================================
   BUILDFRAME FOOTER
=================================== */

.buildframe-footer {
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, #071a2f, #0f2f52);
    color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(116, 227, 255, 0.22);
}

.buildframe-credit {
    max-width: 980px;
    margin: 0 auto;
}

.buildframe-credit strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
}

.buildframe-credit span {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 8px;
    color: #ffffff;
}

.buildframe-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
}

.buildframe-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.buildframe-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.builder-card {
    margin-bottom: 22px;
}

.builder-card h2 {
    margin-bottom: 14px;
}

.section-note {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.question-card {
    padding: 20px;
}

.question-card label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.compact-preview {
    margin: 14px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
}

.compact-preview strong {
    color: #0f766e;
    margin-right: 6px;
}