/* OMID_LAYOUT_RESTORE_V2: preserve existing layout, navigation, columns and tables. */
body.omid-responsive .v5-main{padding-block:12px}
body.omid-responsive .v5-page-title{margin-block:0 10px}
body.omid-responsive .v5-page-title h1{margin-block:0;line-height:1.5}
body.omid-responsive .v5-page-title p{margin-block:3px}
body.omid-responsive .v5-footer{margin-top:12px;padding-block:8px}
body.omid-responsive #third-wizard .wizard-body{min-height:0!important;padding:12px 16px!important}
body.omid-responsive #third-wizard .wizard-steps{margin-block:6px 12px}
body.omid-responsive #third-wizard .wizard-actions{margin-block:10px;gap:10px}
body.omid-responsive #third-wizard .wizard-body h3{margin-block:6px 8px;padding-bottom:6px}
body.omid-responsive #third-wizard .fields{margin-block:6px;row-gap:7px;column-gap:14px}
body.omid-responsive #third-wizard label{margin-block:2px;line-height:1.6}
body.omid-responsive #third-wizard .wizard-body p{margin-block:6px}
body.omid-responsive #third-wizard .cii-vehicle-layout{gap:16px}
body.omid-responsive #third-wizard .cii-previous-policy{padding:12px}
body.omid-responsive #third-wizard :is(.cii-history-fields,.cii-history-extra){row-gap:7px}
body.omid-responsive #third-wizard :is(.cii-policy-dates,.cii-combined-confirm,.omid-spare-fields){margin-block:7px}
body.omid-responsive #third-wizard :is(.notice,.flash){margin-block:6px;padding-block:8px}
body.omid-responsive #third-wizard .omid-price-details{margin-block:8px;padding:12px}
body.omid-responsive #third-wizard .omid-price-details>h3{margin-top:0}
body.omid-responsive #third-wizard :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){height:40px!important;min-height:40px!important;padding-block:7px!important;margin-top:3px!important;box-sizing:border-box}
body.omid-responsive #third-wizard .cii-combo-control>span{top:calc(50% + 1px)!important}
body.omid-responsive :is(.panel,.od-panel){margin-block:10px;padding-block:14px}
body.omid-responsive .panel-heading{margin-bottom:10px}
body.omid-responsive .filter-bar{margin-block:8px;row-gap:8px}
@media(min-width:1100px){
body.omid-responsive #third-wizard .cii-vehicle-layout{grid-template-columns:minmax(0,1fr) minmax(320px,360px)}
}
@media(max-width:680px){
body.omid-responsive #third-wizard .wizard-body{padding:10px!important}
body.omid-responsive #third-wizard .fields{column-gap:10px;row-gap:8px}
body.omid-responsive #third-wizard :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){height:42px!important;min-height:42px!important;font-size:16px!important}
}
/* Vehicle step: plate and vehicle at right, complete history at left. */
body.omid-responsive .v5-main:has(#third-wizard .cii-vehicle-main)>.v5-page-title{display:none}
body.omid-responsive #third-wizard:has(.cii-vehicle-main) .wizard-body{padding:10px 12px!important}
body.omid-responsive #third-wizard .cii-vehicle-layout{align-items:start!important}
body.omid-responsive #third-wizard .cii-vehicle-main{min-width:0}
body.omid-responsive #third-wizard .cii-vehicle-main>.cii-plate-top{margin:0 0 10px;padding:10px 12px;min-height:0}
body.omid-responsive #third-wizard .cii-plate-top .cii-plate-toolbar{margin-bottom:8px}
body.omid-responsive #third-wizard .cii-plate-top .plate{margin:8px auto 12px}
body.omid-responsive #third-wizard .cii-plate-confirm{margin:6px 0 0}
body.omid-responsive #third-wizard .cii-plate-confirm .radio-group{gap:10px;flex-wrap:wrap}
body.omid-responsive #third-wizard .cii-vehicle-layout .fields.three-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 14px;margin:6px 0}
body.omid-responsive #third-wizard .cii-vehicle-layout label{font-size:13px;line-height:1.5;margin:2px 0}
body.omid-responsive #third-wizard .cii-previous-policy{height:auto!important;max-height:none!important;overflow:visible!important;padding:10px 12px}
body.omid-responsive #third-wizard .cii-policy-head,body.omid-responsive #third-wizard .cii-policy-dates,body.omid-responsive #third-wizard .cii-history-fields{gap:6px 10px;margin-block:6px}
body.omid-responsive #third-wizard .cii-history-heading{margin:8px 0 5px}
body.omid-responsive #third-wizard .cii-transit-history{padding:0;margin:0;border:0;min-width:0}
body.omid-responsive #third-wizard .cii-combined-confirm{margin:6px 0}
body.omid-responsive #third-wizard:has(.cii-vehicle-main) .wizard-actions{margin:8px 0;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media(min-width:981px){
body.omid-responsive #third-wizard .cii-vehicle-layout{grid-template-columns:minmax(0,1fr) minmax(290px,24%)!important;gap:18px}
body.omid-responsive #third-wizard .cii-vehicle-layout :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){height:36px!important;min-height:36px!important;padding-block:5px!important}
}
@media(max-width:980px){
body.omid-responsive #third-wizard .cii-vehicle-layout{grid-template-columns:minmax(0,1fr)!important}
body.omid-responsive #third-wizard .cii-previous-policy{width:100%}
}
@media(max-width:600px){
body.omid-responsive #third-wizard .cii-vehicle-layout .fields.three-columns{grid-template-columns:minmax(0,1fr)}
}
/* Equal quote controls and use the blank lower area for live price details. */
body.omid-responsive #third-wizard .omid-quote-layout{padding:12px 14px!important}
body.omid-responsive #third-wizard .omid-quote-top{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-block:4px 12px}
body.omid-responsive #third-wizard .omid-quote-section{min-width:0}
body.omid-responsive #third-wizard .omid-quote-section>.fields{display:block;margin:0}
body.omid-responsive #third-wizard .omid-quote-section>label{display:block}
body.omid-responsive #third-wizard .omid-quote-inputs{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:20px;align-items:start}
body.omid-responsive #third-wizard .omid-quote-dates>.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
body.omid-responsive #third-wizard .omid-quote-covers>.fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
body.omid-responsive #third-wizard .omid-quote-layout label{display:block;min-width:0;font-size:13px;line-height:1.6;margin:0}
body.omid-responsive #third-wizard .omid-quote-layout :is(input:not([type=checkbox]):not([type=radio]),select){width:100%;height:40px!important;min-height:40px!important;margin-top:5px!important;padding:7px 10px!important;box-sizing:border-box}
body.omid-responsive #third-wizard .omid-quote-layout h3{font-size:16px;margin:4px 0 10px;line-height:1.6}
body.omid-responsive #third-wizard .omid-quote-covers>button{margin:8px 0 0;min-height:34px;font-size:12px}
body.omid-responsive #third-wizard .omid-quote-dates>button{margin-top:10px}
body.omid-responsive #third-wizard .omid-quote-prices{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,3fr);gap:14px;align-items:start;margin-top:14px}
body.omid-responsive #third-wizard .omid-quote-prices>.premium{width:auto;min-width:0;margin:0;padding:16px;border-radius:10px;position:static}
body.omid-responsive #third-wizard .omid-quote-prices>.premium strong{font-size:21px;line-height:1.7;overflow-wrap:anywhere}
body.omid-responsive #third-wizard .omid-quote-prices>.omid-price-details{margin:0;padding:12px;border:1px solid #d6e1ec;border-radius:10px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
body.omid-responsive #third-wizard .omid-price-details>h3{grid-column:1/-1;margin:0}
body.omid-responsive #third-wizard .omid-price-details>details{margin:0;min-width:0}
body.omid-responsive #third-wizard .omid-price-details>details>summary{font-weight:700;margin-bottom:6px}
body.omid-responsive #third-wizard .omid-price-table-wrap{min-width:0;overflow-x:auto}
body.omid-responsive #third-wizard .omid-price-table{width:100%;min-width:0;border-collapse:collapse;font-size:13px}
body.omid-responsive #third-wizard .omid-price-table :is(td,th){padding:7px 8px;white-space:normal;line-height:1.6}
body.omid-responsive #third-wizard .omid-price-table td:last-child{font-variant-numeric:tabular-nums;text-align:left}
body.omid-responsive #third-wizard .omid-price-total{font-weight:700;background:#f1f6fa}
body.omid-responsive #third-wizard .omid-quote-await{border:1px dashed #ccd9e6;border-radius:10px;padding:18px;color:#63788b;line-height:1.9}
body.omid-responsive #third-wizard .omid-quote-extras:empty{display:none}
@media(max-width:980px){
body.omid-responsive #third-wizard .omid-quote-inputs{grid-template-columns:minmax(0,1fr)}
body.omid-responsive #third-wizard .omid-quote-covers>.fields{grid-template-columns:repeat(3,minmax(0,1fr))}
body.omid-responsive #third-wizard .omid-quote-prices{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
body.omid-responsive #third-wizard :is(.omid-quote-top,.omid-quote-dates>.fields,.omid-quote-covers>.fields,.omid-quote-prices>.omid-price-details){grid-template-columns:minmax(0,1fr)}
body.omid-responsive #third-wizard .omid-quote-layout :is(input:not([type=checkbox]):not([type=radio]),select){height:42px!important;min-height:42px!important;font-size:16px!important}
}
body.omid-responsive #third-wizard .omid-quote-removed-help{display:none!important}
body.omid-responsive #third-wizard .omid-quote-layout>.omid-quote-top{margin-top:6px;margin-bottom:16px}
body.omid-responsive #third-wizard .omid-quote-inputs{gap:18px}
body.omid-responsive #third-wizard .omid-quote-dates>.fields{gap:12px 16px}
body.omid-responsive #third-wizard .omid-quote-covers>.fields{gap:12px}
body.omid-responsive #third-wizard .omid-quote-layout h3{margin-bottom:14px}
body.omid-responsive #third-wizard .omid-quote-prices{margin-top:14px;margin-bottom:6px}
body.omid-responsive #third-wizard:has(.omid-quote-layout) .wizard-actions{margin-top:10px}
/* Scoped to vehicle information; quote and other steps retain their layout. */
body.omid-responsive #third-wizard .omid-vehicle-removed-note{display:none!important}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vehicle-layout{align-items:start!important}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vehicle-main>.fields.three-columns{gap:10px 14px}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vehicle-layout label{font-size:13px;line-height:1.5;margin:0}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vin-cell{grid-column:1!important;min-width:0}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vin-cell input{width:100%;max-width:100%;min-width:0}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-combined-confirm{grid-column:2/-1;align-self:end;margin:0;padding:5px 0;min-width:0}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-combined-confirm label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vehicle-main>.wizard-actions{display:flex;align-items:center;gap:10px;margin:16px 0 8px;padding:0;border:0;min-height:46px;flex-wrap:wrap}
body.omid-responsive #third-wizard .omid-vehicle-final .wizard-actions [data-back]{margin-inline-end:auto}
body.omid-responsive #third-wizard .omid-vehicle-final .wizard-actions button{min-height:42px;padding:8px 18px}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-history-extra{margin-top:6px}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-previous-policy{border-radius:10px}
@media(max-width:600px){
body.omid-responsive #third-wizard .omid-vehicle-final :is(.cii-vin-cell,.cii-combined-confirm){grid-column:1/-1!important}
body.omid-responsive #third-wizard .omid-vehicle-final .cii-vehicle-main>.wizard-actions{gap:8px}
body.omid-responsive #third-wizard .omid-vehicle-final .wizard-actions button{padding:7px 12px}
}
/* Remove only the red-border explanation throughout the portal. */
body [data-manual-fields-hint],body .omid-manual-fields-hint{display:none!important}
body.omid-responsive #third-wizard .premium{direction:rtl;text-align:right!important}
body.omid-responsive #third-wizard .premium :is(h3,strong){text-align:right!important;direction:rtl}
body.omid-responsive #third-wizard .omid-premium-wait{display:flex;align-items:center;justify-content:flex-start;gap:12px;font-size:15px;font-weight:500;line-height:1.8}
body.omid-responsive #third-wizard .omid-premium-orbit{display:inline-block;flex:none;width:27px;height:27px;border:3px solid #d8e2ed;border-top-color:currentColor;border-radius:50%;animation:omid-premium-spin 1s linear infinite}
body.omid-responsive #third-wizard .is-idle .omid-premium-orbit{animation:omid-premium-pulse 1.8s ease-in-out infinite;border-top-color:currentColor}
@keyframes omid-premium-spin{to{transform:rotate(360deg)}}
@keyframes omid-premium-pulse{50%{opacity:.4;transform:scale(.85)}}
@media(prefers-reduced-motion:reduce){body.omid-responsive #third-wizard .omid-premium-orbit{animation:none}}

@media(min-width:981px){body.omid-responsive #third-wizard .omid-quote-top:has([data-field="introducer_representative_id"]){grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Approved compact final review. Actual fields and original submission handlers retained. */
body.omid-responsive #third-wizard .omid-final-review{font-size:12px;line-height:1.7}
body.omid-responsive #third-wizard .wizard-body:has(.omid-final-review){padding:18px 15px!important;min-height:0}
body.omid-responsive #third-wizard .omid-final-section{margin:0 0 20px}
body.omid-responsive #third-wizard .omid-final-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.omid-responsive #third-wizard .omid-final-heading h3{font-size:13px;color:#134e82;display:flex;align-items:center;gap:8px;margin:0;padding:0;line-height:1.7}
body.omid-responsive #third-wizard .omid-final-heading h3:before{content:'';width:4px;height:14px;border-radius:3px;background:#feb911}
body.omid-responsive #third-wizard .omid-final-edit{border:0!important;background:none!important;color:#527b9d!important;box-shadow:none!important;min-height:24px;font-size:10px;padding:0}
body.omid-responsive #third-wizard .omid-final-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px;margin:0}
body.omid-responsive #third-wizard .omid-final-cell{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:41px;padding:7px 10px;border:1px solid #dce6ef;border-radius:7px;background:#f7f9fc}
body.omid-responsive #third-wizard .omid-final-cell dt{font-size:10px;color:#71859b;flex:none}
body.omid-responsive #third-wizard .omid-final-cell dd{font-size:12px;font-weight:700;color:#153f63;text-align:left;margin:0;min-width:0;overflow-wrap:anywhere}
body.omid-responsive #third-wizard .omid-final-cell dd[dir=ltr]{font-family:Arial,sans-serif;letter-spacing:.1px}
body.omid-responsive #third-wizard :is(.omid-final-extra,.omid-final-routing){margin:0 0 10px;border:0;padding:0}
body.omid-responsive #third-wizard .omid-final-extra{max-width:66.666%}
body.omid-responsive #third-wizard :is(.omid-final-extra,.omid-final-routing)>summary{font-size:11px;font-weight:700;color:#456785;cursor:pointer;margin-bottom:8px}
body.omid-responsive #third-wizard .omid-final-payment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;padding-top:12px;margin-bottom:10px;border-top:1px solid #e0e9f1}
body.omid-responsive #third-wizard .omid-final-total{grid-column:1;width:auto!important;min-width:0;padding:14px!important;margin:0!important;min-height:120px;direction:rtl;text-align:right!important;border:1px solid #d2e2ef;border-radius:9px;background:#eef5fc;display:flex;flex-direction:column;justify-content:center}
body.omid-responsive #third-wizard .omid-final-total h3{font-size:11px;font-weight:400;color:#68859e;margin:0 0 5px;padding:0}
body.omid-responsive #third-wizard .omid-final-total strong{font-size:23px;line-height:1.6;color:#134e82;overflow-wrap:anywhere}
body.omid-responsive #third-wizard .omid-final-total small{font-size:14px}
body.omid-responsive #third-wizard .omid-final-payment-method h3{font-size:11px;font-weight:400;color:#6b8298;margin:0 0 8px}
body.omid-responsive #third-wizard .omid-final-payment-method .radio-group{display:flex;flex-direction:column;gap:7px}
body.omid-responsive #third-wizard .omid-final-payment-method label{font-size:11px;margin:0}
body.omid-responsive #third-wizard .omid-final-routing .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
body.omid-responsive #third-wizard .omid-final-consents .checkline{display:flex;align-items:flex-start;gap:8px;font-size:11px;margin-block:8px}
body.omid-responsive #third-wizard .omid-final-consents input{margin-top:3px;flex:none}
body.omid-responsive #third-wizard:has(.omid-final-review)>.wizard-actions{border-top:1px solid #e0e9f1;margin:0;padding:16px 15px;display:flex;align-items:center;gap:8px}
body.omid-responsive #third-wizard:has(.omid-final-review)>.wizard-actions [data-back]{margin-inline-end:auto}
body.omid-responsive #third-wizard:has(.omid-final-review)>.wizard-actions button{min-height:36px;font-size:11px;padding:7px 15px}
body.omid-responsive #third-wizard:has(.omid-final-review)>.muted{display:none}
body.omid-responsive #third-wizard:has(.omid-final-review) .wizard-steps{margin-block:6px 12px}
body.omid-responsive #third-wizard:has(.omid-final-review) .wizard-steps li{min-height:48px;font-size:11px;padding-block:8px}
@media(max-width:800px){body.omid-responsive #third-wizard .omid-final-grid,body.omid-responsive #third-wizard .omid-final-routing .fields{grid-template-columns:repeat(2,minmax(0,1fr))}body.omid-responsive #third-wizard .omid-final-extra{max-width:100%}body.omid-responsive #third-wizard .omid-final-payment{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){body.omid-responsive #third-wizard .omid-final-grid,body.omid-responsive #third-wizard .omid-final-routing .fields,body.omid-responsive #third-wizard .omid-final-payment{grid-template-columns:1fr}body.omid-responsive #third-wizard .omid-final-total{grid-column:1}body.omid-responsive #third-wizard .omid-final-cell{gap:8px}body.omid-responsive #third-wizard:has(.omid-final-review)>.wizard-actions{flex-wrap:wrap}}
