/* صفحة المصمم بأسلوب الموقع */
.cfg-top { padding: 96px 0 56px; text-align: center; }
.cfg-top .mono { color: var(--teal); margin-bottom: 14px; }
.cfg-top h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.cfg-top p { color: var(--ink-2); max-width: 640px; margin-inline: auto; font-size: 1.05rem; }
.cfg-wrap { padding: 0 0 96px; }

.cfg-top { padding: 9rem 0 6rem; text-align: center; color: var(--ivory-2); background: linear-gradient(160deg, var(--ink), #12395e); }
.cfg-top h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.cfg-top p { color: #d7e6f5; max-width: 640px; margin-inline: auto; font-size: 1.1rem; }
.cfg-wrap { margin-top: -4rem; position: relative; z-index: 2; padding-bottom: 4rem; }
.cfg-box { max-width: 780px; margin: 0 auto; background: var(--ivory-2); border-radius: 22px; padding: 34px; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08); border: 1px solid var(--line); }
.cfg-progress { height: 8px; background: var(--limestone); border-radius: 99px; overflow: hidden; }
.cfg-progress > div { height: 100%; width: 25%; background: linear-gradient(90deg, var(--teal), var(--teal-soft)); transition: width .4s ease; }
.cfg-count { color: var(--ink-3); font-size: .95rem; margin: 12px 0 22px; }
.cfg-step { display: none; gap: 16px; }
.cfg-step.active { display: grid; }
.cfg-step h2 { font-size: 1.4rem; color: var(--ink); font-weight: 800; }
.cfg-hint { color: var(--ink-3); font-size: .95rem; margin-top: -8px; }
.cfg-label { font-weight: 700; color: var(--ink); margin-bottom: 6px; display: block; }
.cfg-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cfg-choice { position: relative; display: block; }
.cfg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-choice span { display: block; padding: 13px 10px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; cursor: pointer; background: var(--ivory-2); font-weight: 700; color: var(--ink); transition: all .2s; }
.cfg-choice input:checked + span { border-color: var(--bronze); background: rgba(134, 87, 42, .12); box-shadow: 0 0 0 3px rgba(134, 87, 42, .18); }
.cfg-choice input:focus-visible + span { outline: 2px solid var(--teal-soft); outline-offset: 2px; }
.cfg-field { display: flex; flex-direction: column; gap: 4px; }
.cfg-field input, .cfg-field textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--ivory-2); width: 100%; }
.cfg-field input:focus, .cfg-field textarea:focus { outline: none; border-color: var(--teal-soft); box-shadow: 0 0 0 3px rgba(41, 197, 214, .2); }
.cfg-field.invalid input { border-color: #d64545; }
.cfg-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cfg-actions .right { display: flex; gap: 10px; flex-wrap: wrap; }
.cfg-btn { border: 0; border-radius: 12px; padding: 12px 24px; font: inherit; font-weight: 700; cursor: pointer; }
.cfg-btn-main { background: var(--teal); color: #fff; }
.cfg-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.cfg-btn-wa { background: #25d366; color: var(--ivory-2); }
.cfg-error { color: #d64545; font-weight: 600; }
.cfg-summary { background: var(--limestone); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.cfg-summary div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.cfg-summary div:last-child { border-bottom: 0; }
.cfg-summary span:first-child { color: var(--ink-3); }
.cfg-summary span:last-child { font-weight: 700; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
@media (max-width: 575px) { .cfg-box { padding: 22px; } .cfg-top { padding: 7rem 0 5rem; } }
