/*
 * Pagina "Cerere ofertă" (cerere_oferta.php): formular pe secțiuni, aliniat cu restul designului actual.
 * Câmpurile și numele lor sunt cele din formularul vechi; aici e doar aspectul.
 */

.cr-page { --cr-accent: #2b7a96; --cr-accent-dark: #22627a; --cr-accent-soft: #eaf3f7; --cr-ink: #1f2a33; --cr-muted: #6b7782; --cr-line: #dfe5ea; color: var(--cr-ink); font-family: 'Open Sans Ro', 'Open Sans', -apple-system, 'Segoe UI', Arial, sans-serif; }

/* ---- Introducere ---- */
.cr-page .cr-intro { margin: 0 0 18px; padding: 22px 24px; border-radius: 10px; background: linear-gradient(135deg, #2b7a96 0%, #1b3340 100%); color: #fff; }
.cr-page .cr-intro h2 { margin: 0 0 8px; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.cr-page .cr-intro p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.6; }
.cr-page .cr-trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #fff; }
.cr-page .cr-trust i { margin-right: 6px; color: #9fe0c0; }

/* ---- Secțiuni ---- */
.cr-page .cr-section { margin: 0 0 16px; padding: 20px 22px 8px; border: 1px solid var(--cr-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(18, 48, 59, .05); }
.cr-page .cr-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--cr-ink); }
.cr-page .cr-section h3 .cr-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--cr-accent); color: #fff; font-size: 14px; font-weight: 700; }
.cr-page .cr-section h3 small { font-size: 12.5px; font-weight: 400; color: var(--cr-muted); }

.cr-page .cr-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; }
.cr-page .cr-field { grid-column: span 12; margin: 0 0 16px; min-width: 0; }
.cr-page .cr-field.c6 { grid-column: span 6; }
.cr-page .cr-field.c4 { grid-column: span 4; }
.cr-page .cr-field.c3 { grid-column: span 3; }

/* eticheta: tema stilizează <label>, deci neutralizăm decorațiile ei */
.cr-page .cr-label {
    position: static !important; top: auto; left: auto; right: auto; bottom: auto; float: none; display: block; width: auto; height: auto; margin: 0 0 5px; padding: 0 !important;
    background: none; border: 0; color: #3d4a55; font-size: 13px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; cursor: default;
}
.cr-page .cr-label::before, .cr-page .cr-label::after { content: none !important; display: none !important; }
.cr-page .cr-label .cr-req { margin-left: 3px; color: #c7081b; }
.cr-page .cr-hint { display: block; margin: 4px 0 0; color: var(--cr-muted); font-size: 12px; }

/* câmpurile */
.cr-page .cr-field input[type=text], .cr-page .cr-field input[type=tel], .cr-page .cr-field input[type=email], .cr-page .cr-field select, .cr-page .cr-field textarea {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; box-sizing: border-box; display: block; float: none; width: 100%; height: 44px; margin: 0; padding: 0 12px;
    border: 1px solid #cfd6dc; border-radius: 8px; background-color: #fff; color: var(--cr-ink); font-family: inherit; font-size: 15px; line-height: 1.3; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.cr-page .cr-field textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.cr-page .cr-field select {
    padding-right: 32px; cursor: pointer; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7782' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.cr-page .cr-field input::placeholder, .cr-page .cr-field textarea::placeholder { color: #98a3ad; }
.cr-page .cr-field input:hover, .cr-page .cr-field select:hover, .cr-page .cr-field textarea:hover { border-color: #aab5be; }
.cr-page .cr-field input:focus, .cr-page .cr-field select:focus, .cr-page .cr-field textarea:focus { outline: none; border-color: var(--cr-accent); box-shadow: 0 0 0 3px rgba(43, 122, 150, .18); }

/* alegere DA / NU */
.cr-page .cr-seg { display: flex; gap: 10px; }
.cr-page .cr-seg input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cr-page .cr-seg label {
    position: static !important; display: flex; flex: 1 1 0; align-items: center; justify-content: center; float: none; width: auto; height: 44px; margin: 0; padding: 0 !important;
    border: 1px solid #cfd6dc; border-radius: 8px; background: #fff; color: #3d4a55; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cr-page .cr-seg label::before, .cr-page .cr-seg label::after { content: none !important; display: none !important; }
.cr-page .cr-seg label:hover { border-color: #aab5be; }
.cr-page .cr-seg input:checked + label { border-color: var(--cr-accent); background: var(--cr-accent-soft); color: var(--cr-accent-dark); box-shadow: 0 0 0 2px rgba(43, 122, 150, .18); }
.cr-page .cr-seg input:focus-visible + label { outline: 2px solid var(--cr-accent); outline-offset: 2px; }
.cr-page [hidden] { display: none !important; }

/* validare (jQuery Validate adaugă clasa "error" și un <em> după câmp) */
.cr-page .cr-field input.error, .cr-page .cr-field select.error, .cr-page .cr-field textarea.error { border-color: #c7081b; background-color: #fff8f8; }
.cr-page .cr-field em.error { display: block; margin: 5px 0 0; color: #c7081b; font-size: 12.5px; font-style: normal; font-weight: 600; }
.cr-page .cr-captcha em.error { display: block; margin: 6px 0 0; color: #c7081b; font-size: 12.5px; font-style: normal; font-weight: 600; }

/* ---- Trimitere ---- */
.cr-page .cr-send { margin: 0 0 8px; padding: 20px 22px; border: 1px solid var(--cr-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(18, 48, 59, .05); }
.cr-page .cr-captcha { margin: 0 0 16px; min-height: 20px; }
.cr-page #submit_btn {
    -webkit-appearance: none; appearance: none; display: inline-block; float: none; height: 50px; margin: 0; padding: 0 38px; border: 0; border-radius: 8px; background: var(--cr-accent);
    color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 8px rgba(43, 122, 150, .3); transition: background .15s ease, transform .15s ease;
}
.cr-page #submit_btn:hover { background: var(--cr-accent-dark); }
.cr-page #submit_btn:active { transform: translateY(1px); }
.cr-page .cr-legal { margin: 14px 0 0; color: var(--cr-muted); font-size: 12.5px; line-height: 1.55; }
.cr-page .cr-legal a { color: var(--cr-accent-dark); text-decoration: underline; }
.cr-page .cr-agreement { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid var(--cr-accent); border-radius: 0 8px 8px 0; background: var(--cr-accent-soft); color: #3d4a55; font-size: 13px; line-height: 1.55; }

/* ---- Tabletă și telefon ---- */
@media (max-width: 767px) {
    .cr-page .cr-intro { padding: 18px 16px; }
    .cr-page .cr-intro h2 { font-size: 22px; }
    .cr-page .cr-section { padding: 16px 14px 4px; }
    .cr-page .cr-field.c6, .cr-page .cr-field.c4, .cr-page .cr-field.c3 { grid-column: span 12; }
    /* An minim/maxim, cutie/tracțiune și prețurile stau două câte două, ca formularul să nu fie foarte lung */
    .cr-page .cr-field.half { grid-column: span 6; }
    .cr-page .cr-field input[type=text], .cr-page .cr-field input[type=tel], .cr-page .cr-field input[type=email], .cr-page .cr-field select, .cr-page .cr-field textarea { font-size: 16px; } /* fără zoom automat pe iPhone */
    .cr-page .cr-send { padding: 16px 14px; }
    .cr-page #submit_btn { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .cr-page .cr-field.c3 { grid-column: span 6; }
}
