:root { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.shell { max-width: 900px; margin: 0 auto; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
header { padding: 30px 30px 40px; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
header h1 { margin: 0 0 10px; font-size: 28px; }
header p { margin: 0; font-size: 14px; opacity: .9; }
header .brand { font-size: 18px; font-weight: 600; margin-top: 5px; }
header .header-rate { font-size: 13px; margin-top: 5px; }
header a { display: inline-block; margin-top: 18px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 8px; padding: 8px 18px; background: rgba(255,255,255,.18); color: white; font-size: 14px; text-decoration: none; }
main { padding: 30px; }
.section, #identify, #estimate { margin-bottom: 25px; padding: 25px; background: #f8f9fa; border-radius: 15px; border-left: 5px solid #667eea; }
h2 { color: #667eea; font-size: 20px; font-weight: 600; margin: 0 0 20px; }
h3 { color: #667eea; font-size: 18px; margin: 25px 0 15px; }
p { margin: 0 0 15px; }
.eyebrow { color: #667eea; font-size: 12px; letter-spacing: 1.2px; margin-bottom: 12px; }
.choices, .fields, .extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choices { border: 0; margin: 20px 0 0; padding: 0; }
.choices legend { padding: 0 0 8px; font-size: 14px; font-weight: 600; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 20px; border: 2px solid #e0e0e0; border-radius: 10px; background: white; cursor: pointer; min-width: 0; }
.choice:has(input:checked) { border-color: #667eea; background: #eef0ff; }
.choice span { display: grid; gap: 9px; }
.choice small { color: #555; font-size: 13px; }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: #667eea; }
label { font-size: 14px; }
.input-label, .fields label, #otp-form > label { font-size: 14px; font-weight: 600; }
.input-label { display: block; margin-bottom: 8px; }
.fields label { display: grid; gap: 8px; }
.required { color: #dc3545; }
.input-group { margin-top: 18px; margin-bottom: 18px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { width: 100%; min-width: 0; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; background: white; color: #333; font-family: inherit; font-size: 15px; font-weight: 400; transition: border-color .3s; }
select:focus, input:focus { border-color: #667eea; }
button, .button { display: inline-block; width: 100%; padding: 15px; margin-top: 20px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: transform .2s, box-shadow .2s; }
button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(102,126,234,.4); }
button:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
#back, #resend, #new-enquiry { background: #6c757d; }
a { color: #667eea; }
.summary { margin: 15px 0 0; padding: 20px; background: white; border: 2px solid #667eea; border-radius: 10px; }
.row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.row:last-child { border-bottom: 0; }
.total { margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 600; color: #667eea; }
.note { color: #555; font-size: 13px; margin-top: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.check input { margin-top: 3px; }
.extras { column-gap: 24px; row-gap: 0; }
.extras .check { border-bottom: 1px solid #e0e0e0; }
.status { margin-top: 16px; white-space: pre-line; }
.status:empty { display: none; }
.status.error { color: #ad2637; }
.included { padding-left: 22px; columns: 2; column-gap: 28px; }
.included li { break-inside: avoid; margin-bottom: 10px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8e76cc; outline-offset: 3px; }
@media (max-width: 768px) { body { padding: 10px; } main { padding: 15px; } header { padding: 20px; } header h1 { font-size: 22px; } .section, #identify, #estimate { padding: 15px; } .fields, .choices, .extras { grid-template-columns: 1fr; } .included { columns: 1; } .total { font-size: 18px; } }
/* V2-style mobile verification popup; native dialog contains keyboard focus. */
#identify.otp-modal { position: fixed; inset: 0; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px 28px; border: 0; border-radius: 16px; background: #fff; color: #333; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow-y: auto; }
#identify.otp-modal::backdrop { background: rgba(0,0,0,.55); }
#identify.otp-modal h2 { color: #333; font-size: 21px; padding-right: 20px; margin-bottom: 8px; }
#identify.otp-modal #otp-description { color: #666; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
#identify.otp-modal .fields { grid-template-columns: 1fr; }
#identify.otp-modal .otp-close { position: absolute; top: 8px; right: 12px; width: auto; margin: 0; padding: 0 7px; min-height: 36px; border: 0; background: none; color: #777; font-size: 28px; font-weight: 400; box-shadow: none; transform: none; }
#identify.otp-modal #otp { margin-top: 10px; text-align: center; font-size: 26px; letter-spacing: 12px; }
#identify.otp-modal #back, #identify.otp-modal #change-mobile, #identify.otp-modal #resend { margin-top: 12px; background: transparent; color: #667eea; padding: 8px; font-size: 14px; box-shadow: none; transform: none; }
body:has(#identify[open]) { overflow: hidden; }
