/* Layout Alignment */
.schema-tool-container { display: flex; gap: 40px; align-items: flex-start; margin-top: 2rem; }
.schema-inputs-pane { flex: 1.2; }
.schema-output-pane { flex: 1; position: sticky; top: 20px; }

/* Question Group Styling */
.faq-group {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px; /* Increased padding to prevent edge touching */
    border-radius: 12px;
    border: 2px solid #290F0F;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #290F0F;
    letter-spacing: 0.05em;
}

.input-stack label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 0.95rem; }

.input-stack input, 
.input-stack textarea {
    width: 100%;
    max-width: 100%; /* Prevents horizontal overflow */
    padding: 15px;
    border: 2px solid #290F0F;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box; /* Ensures padding is included in width */
    background: #fff;
}

/* Dynamic Buttons */
.add-btn {
    background: #bda071;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.add-btn:hover { background: #290F0F; }
.schema-btn { background: #77b21d; }

.remove-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

/* Code Output Area */
.code-wrapper {
    background: #290F0F;
    color: #f1f1f1;
    padding: 25px;
    border-radius: 12px;
    min-height: 450px;
    border: 2px solid #bda071;
}
#schemaOutput { font-family: monospace; font-size: 0.85rem; white-space: pre-wrap; margin: 0; }

.hidden-actions { display: none; flex-direction: column; gap: 10px; margin-top: 20px; }
.action-btn { width: 100%; padding: 12px; border-radius: 6px; font-weight: 700; color: #fff; border: none; cursor: pointer; }
.copy-btn { background: #bda071; }
.google-btn { background: #4285F4; }

@media (max-width: 1100px) { .schema-tool-container { flex-direction: column; } .schema-output-pane { position: static; width: 100%; } }