@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

:root {
  /* Bảng màu Retro 20 màu */
  --color-1: #E27D60;  --color-2: #85DCBA;  --color-3: #E8A87C;  --color-4: #C38D9E;  --color-5: #41B3A3;
  --color-6: #E9C46A;  --color-7: #F4A261;  --color-8: #E76F51;  --color-9: #D4A373;  --color-10: #FAEDCB;
  --color-11: #A8DADC; --color-12: #457B9D; --color-13: #1D3557; --color-14: #2A9D8F; --color-15: #264653;
  --color-16: #C9E4DE; --color-17: #A3B18A; --color-18: #588157; --color-19: #A5A58D; --color-20: #F4F1DE;
}

.hidden { display: none !important; }

/* WRAPPER NỀN TRẮNG */
.schema-neo-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 950px; margin: 30px auto; background: #fff;
    border: 3px solid #000; border-radius: 16px; box-shadow: 10px 10px 0px #000;
    padding: 25px; box-sizing: border-box; color: #000;
}
.schema-neo-wrapper * { box-sizing: border-box; }

.schema-header {
    background: var(--color-20); padding: 20px; border-radius: 12px;
    border: 3px solid #000; box-shadow: 4px 4px 0px #000; margin-bottom: 25px; text-align: center;
}
.schema-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; color: #111;}
.schema-header p { margin: 0; font-weight: 700; font-size: 1rem; color: #333; }

/* BỐ CỤC CARD & GRID */
.schema-card { border: 3px solid #000; padding: 20px; border-radius: 12px; box-shadow: 4px 4px 0px #000;}
.schema-form-box { background: var(--color-10); border: 3px solid #000; padding: 25px; border-radius: 12px; box-shadow: 6px 6px 0px #000; margin-bottom: 30px;}
.schema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}

.bg-powder { background: var(--color-11); }
.bg-eggshell { background: var(--color-20); }

/* MASTER RULE: NHÃN ĐEN, ĐẬM, IN HOA */
.schema-neo-wrapper label { display: block; color: #000 !important; font-weight: 900; font-size: 1.05rem; margin-bottom: 8px; text-transform: uppercase;}

/* RADIO BUTTONS */
.radio-neo-group { display: flex; gap: 10px; flex-wrap: wrap;}
.radio-neo { flex: 1; min-width: 150px; cursor: pointer; }
.radio-neo input { display: none; }
.neo-content {
    display: block; text-align: center; padding: 12px; font-weight: 900; font-size: 1rem; text-transform: none;
    border: 2px solid #000; border-radius: 8px; background: #fff; transition: 0.1s;
}
.radio-neo input:checked + .neo-content { background: var(--color-15); color: #fff; box-shadow: 3px 3px 0px var(--color-13); transform: translate(2px, 2px); }

/* INPUT STYLES */
.schema-group { margin-bottom: 0; }
.schema-input {
    width: 100%; padding: 12px 15px; font-size: 1.1rem; font-weight: 900; font-family: 'Courier New', monospace;
    border: 3px dashed #000; border-radius: 8px; outline: none; background: #fff; transition: 0.1s;
}
.schema-input:focus { border-style: solid; border-color: var(--color-14); box-shadow: 4px 4px 0px var(--color-14); transform: translateY(-2px); }

.schema-live-text { color: var(--color-8); font-weight: 800; font-size: 0.95rem; margin-top: 6px; min-height: 18px; font-style: italic;}

/* FAQ DYNAMIC */
.faq-item { border: 2px solid #000; padding: 15px; border-radius: 8px; margin-bottom: 15px; position: relative;}
.btn-remove-faq { position: absolute; top: 10px; right: 10px; background: var(--color-8); color: #fff; font-weight: 900; border: 2px solid #000; padding: 5px 10px; border-radius: 6px; cursor: pointer;}
.schema-btn-add { width: 100%; padding: 12px; font-size: 1.1rem; font-weight: 900; background: #fff; color: #000; border: 3px dashed #000; border-radius: 8px; cursor: pointer; transition: 0.1s;}
.schema-btn-add:hover { background: var(--color-13); color: #fff; border-style: solid;}

/* OUTPUT CODE KHU VỰC */
.schema-output-section { border: 4px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0px #000;}
.output-header { background: var(--color-13); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #000;}
.output-header h3 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 900;}
.schema-btn-copy { background: var(--color-6); color: #000; font-weight: 900; border: 2px solid #000; padding: 8px 20px; border-radius: 6px; cursor: pointer; box-shadow: 2px 2px 0px #000; font-size: 1rem; text-transform: uppercase;}
.schema-btn-copy:active { transform: translate(2px,2px); box-shadow: 0px 0px 0px #000;}
.schema-btn-copy.success { background: var(--color-2); color: #000; }

.code-container { background: #1a1a1a; padding: 20px; margin: 0; overflow-x: auto;}
.code-container pre { margin: 0; }
.code-container code { font-family: 'Courier New', monospace; font-size: 1.05rem; color: #85DCBA; font-weight: 700; line-height: 1.5;}

@media (max-width: 768px) {
    .schema-grid { grid-template-columns: 1fr; }
    .output-header { flex-direction: column; gap: 15px; text-align: center;}
}