/* Formularul MR.DIY (resources/views/form.blade.php). Culorile site-ului mrdiy.com/ro: galben, maro, rosu. */
:root {
    --mrdiy-yellow: #ffc107;
    --mrdiy-yellow-soft: #fff4cc;
    --mrdiy-brown: #54301a;
    --mrdiy-red: #e30613;
    --mrdiy-red-dark: #b8050f;
    --page-bg: #faf6ee;
    --line: #eadfca;
    --corner: 4px;          /* colturile cardurilor, campurilor, variantelor, popup-urilor, bannerului */
    --button-corner: 4px;   /* butoanele: tot 4px, nu „pastila” (Valentin, 11.11) */
}
body {
    background: var(--page-bg);
    color: var(--mrdiy-brown);
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
}
a { color: var(--mrdiy-red); }

/* antet ca pe site: bara alba cu logo + banda galbena */
.site-top { background: #fff; border-bottom: 1px solid var(--line); }
.site-top .inner { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-top img { height: 34px; width: auto; }
.site-top span { font-size: 14px; font-weight: 600; }
.site-band { background: var(--mrdiy-yellow); box-shadow: 0 2px 6px rgba(84, 48, 26, .12); }
.site-band .inner { max-width: 760px; margin: 0 auto; padding: 18px 16px; }
.site-band h1 { font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; line-height: 1.2; margin: 0; }
.site-band p { margin: 6px 0 0; font-size: 15px; font-weight: 500; }

.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
.banner { display: block; width: 100%; height: auto; border-radius: var(--corner); margin-bottom: 20px; box-shadow: 0 4px 14px rgba(84, 48, 26, .12); }
/* pe tableta / desktop bannerul nu mai ocupa jumatate de ecran: intreg, centrat, pe galbenul lui (#ffd401) */
@media (min-width: 768px) { .banner { height: 260px; object-fit: contain; background: #ffd401; } }

/* cate un card pe intrebare */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--corner); padding: 20px; margin-bottom: 14px; }
.q-title { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; font-size: 17px; margin-bottom: 14px; line-height: 1.35; }
.q-number { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--mrdiy-yellow); color: var(--mrdiy-brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.required { color: var(--mrdiy-red); }
.q-hint { font-size: 14px; color: #8a6a55; margin: -6px 0 12px 44px; }

/* campuri mari, usor de atins pe tableta / telefon (16px+ ca iOS sa nu faca zoom) */
.form-control { min-height: 54px; font-size: 17px; border-radius: var(--corner); border: 2px solid var(--line); color: var(--mrdiy-brown); }
.form-control:focus { border-color: var(--mrdiy-yellow); box-shadow: 0 0 0 4px rgba(255, 193, 7, .3); }
.form-control::placeholder { color: #b9a796; }

/* variantele de raspuns: butoane mari, toata suprafata se poate apasa */
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
@media (min-width: 576px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices.one { grid-template-columns: 1fr; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; margin: 0; border: 2px solid var(--line); border-radius: var(--corner); cursor: pointer; font-weight: 500; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #f3d27a; }
.choice input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: var(--mrdiy-red); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--mrdiy-yellow); background: var(--mrdiy-yellow-soft); font-weight: 700; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255, 193, 7, .35); }
.choices.is-invalid .choice { border-color: #f1a5aa; }
.field-error { color: var(--mrdiy-red); font-size: 14px; font-weight: 600; margin-top: 8px; }

.agree { align-items: flex-start; line-height: 1.4; }
.agree input { margin-top: 2px; }
.rules-link { display: inline-block; margin-top: 12px; padding: 6px 0; font-weight: 700; text-decoration: underline; }

.btn-submit { display: block; width: 100%; min-height: 58px; border: 0; border-radius: var(--button-corner); background: var(--mrdiy-red); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 4px 12px rgba(227, 6, 19, .3); }
.btn-submit:hover, .btn-submit:focus { background: var(--mrdiy-red-dark); color: #fff; }
.btn-submit:disabled { background: #c9a9a2; box-shadow: none; opacity: 1; cursor: wait; }
@media (min-width: 768px) { .btn-submit { width: auto; padding: 0 56px; margin: 0 auto; } }

/* „Renunta”: discret, departe de „Trimite”, ca sa nu fie apasat din greseala */
.form-actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.form-actions .btn-submit { align-self: stretch; }
@media (min-width: 768px) { .form-actions .btn-submit { align-self: center; } }
.btn-cancel { background: none; border: 0; padding: 8px 12px; color: #8a6a55; font-size: 15px; font-weight: 600; text-decoration: underline; }
.btn-cancel:hover { color: var(--mrdiy-brown); }

.alert { border-radius: var(--corner); font-size: 16px; }

/* popup-uri: confirmarea trimiterii si „Renunta” */
.popup-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(40, 22, 10, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-backdrop[hidden] { display: none; }
.popup { background: #fff; border-radius: var(--corner); padding: 28px 24px 22px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.popup-check { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #1f9d55; color: #fff; font-size: 40px; line-height: 72px; font-weight: 700; }
.popup-text { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.popup-gift { display: inline-block; background: var(--mrdiy-yellow-soft); border: 2px solid var(--mrdiy-yellow); border-radius: var(--corner); padding: 8px 14px; font-weight: 700; margin: 4px 0 16px; }
.popup-timer { font-size: 14px; color: #8a6a55; margin: 12px 0 0; }
.popup-actions { display: flex; gap: 10px; margin-top: 18px; }
.popup-actions button { flex: 1; }
.btn-main { min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--button-corner); background: var(--mrdiy-red); color: #fff; font-size: 17px; font-weight: 700; }
.popup > .btn-secondary-outline { min-width: 160px; margin-top: 4px; }
.btn-secondary-outline { min-height: 52px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--button-corner); background: #fff; color: var(--mrdiy-brown); font-size: 17px; font-weight: 700; }

.site-foot { text-align: center; font-size: 13px; color: #8a6a55; padding: 0 16px 28px; }
