/* Detran RS - réplica de portalgoveiculos.com/expresso (paridade com React IndexRS) */
html, body { margin: 0; padding: 0; }
body { background-color: #e2e2e2; font-family: Arial, sans-serif; box-sizing: border-box; min-height: 100vh; }
*, *::before, *::after { box-sizing: border-box; }

#div1 { display: flex; align-items: center; background-color: #fff; padding: 10px; height: 60px; gap: 12px; }
#div1 img { width: auto; height: 28px; margin: 0; padding: 0; }
.drs-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 22px; height: 22px; cursor: pointer; flex-shrink: 0; margin-left: 5px; }
.drs-burger span { display: block; height: 2px; background: #333; border-radius: 2px; }
#img1 { margin-left: 5px; }
#search-container { flex-grow: 1; text-align: center; }
.drs-agencia { font-size: 11px; color: #475569; letter-spacing: 2px; font-weight: 400; text-transform: uppercase; padding-left: 10px; border-left: 1px solid #e2e8f0; white-space: nowrap; flex-shrink: 0; }
.drs-agencia b { font-weight: 700; color: #0f172a; letter-spacing: 2px; }
.drs-header-line { height: 4px; background: linear-gradient(90deg, #b8431a 0%, #f37021 50%, #ffa552 100%); }

#div2 { background-color: transparent; padding: 16px 10px 8px; margin-top: 12px; text-align: center; }
#div2 h3 { margin: 0; font-size: 20px; font-weight: 700; color: #2b2b2b; letter-spacing: 0.2px; }

#div3 { background: transparent; padding: 20px; max-width: 920px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.sub-container { background: white; display: flex; justify-content: space-between; width: 920px; max-width: 100%; margin: 0 auto; }
.sub1 { flex-grow: 1; text-align: center; margin: 10px; padding: 0 16px; }
.sub2 { text-align: center; margin: 10px 0; }
.sub2 img, .is { max-width: 100%; height: auto; }

.sub1 a { display: inline-block; font-size: 17px; font-weight: 700; color: #f37021; padding-bottom: 6px; border-bottom: 3px solid #f37021; }

.rs { width: 350px; max-width: 100%; height: auto; text-align: left; margin: 0 auto; }
.rs label { display: block; text-align: left; margin-bottom: 18px; color: #333; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.rs label + label { margin-top: 18px; }
.rs input { width: 100%; outline: none; border: 1px solid rgb(201,201,201); font-family: Arial; padding-left: 10px; height: 35px; box-sizing: border-box; display: block; margin-bottom: 0; margin-top: 2px; background: #fff; color: #333; }
.rs button[type="submit"] { padding: 8px; width: 300px; height: 50px; border-radius: 26px; border: none; outline: none; background-color: #f37021; color: white; cursor: pointer; font-family: Arial; font-size: 14px; }
.rs button[type="submit"]:hover { opacity: 0.92; }

.alerta-importante { display: flex; align-items: center; gap: 10px; background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; padding: 12px 14px; border-radius: 6px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; margin: 0 auto 15px auto; max-width: 350px; }
.alerta-icon { font-size: 18px; line-height: 1; }

/* Modal de loading */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; }
.modal[style*="block"] { display: flex !important; }
.modal-content { background: transparent; padding: 20px; }
.loader { border: 10px solid #c78904; border-top: 10px solid #f8f9fa; border-radius: 50%; width: 120px; height: 120px; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* Hint inline (Renavam helper) */
.drs-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #7a869a; margin: 4px 0 14px; line-height: 1.3; font-family: Arial, sans-serif; text-align: left; }
.drs-hint-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 1px solid #7a869a; border-radius: 50%; font-size: 10px; color: #7a869a; flex-shrink: 0; }
.drs-hint-text { flex: 1; min-width: 0; white-space: normal; }
.drs-hint-link { background: none; border: none; color: #6b7280; text-decoration: underline; cursor: pointer; font-size: 12px; font-family: inherit; padding: 0; white-space: nowrap; flex-shrink: 0; }
.drs-hint-link:hover { color: #333; }

/* Help modal */
.drs-help-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.drs-help-modal { background: #fff; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 10px; padding: 24px 22px; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,0.3); font-family: Arial, sans-serif; color: #333; text-align: left; }
.drs-help-modal h3 { margin: 0 0 16px; font-size: 18px; color: #2b2b2b; padding-right: 24px; }
.drs-help-modal h4 { margin: 0 0 6px; font-size: 15px; color: #f37021; }
.drs-help-modal p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.drs-help-modal ul { margin: 6px 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.drs-help-section { margin-bottom: 18px; }
.drs-help-tip { background: #fff8e1; border-left: 3px solid #f37021; padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.drs-help-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #888; }
.drs-help-close:hover { color: #333; }
.drs-help-ok { display: block; width: 100%; margin-top: 10px; padding: 12px; background: #333; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: Arial, sans-serif; }
.drs-help-ok:hover { background: #000; }

/* Footer */
.rrs-footer { background: #d6d6d6; padding: 36px 20px 22px; text-align: center; margin-top: 40px; font-family: Arial, sans-serif; }
.rrs-footer-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.rrs-footer-line { flex: 1; height: 2px; max-width: 200px; }
.rrs-footer-line-left { background: linear-gradient(90deg, transparent, #b8431a); }
.rrs-footer-line-right { background: linear-gradient(90deg, #b8431a, transparent); }
.rrs-footer-logo { height: 140px; width: auto; }
.rrs-footer p { font-size: 13px; color: #555; margin: 4px 0; }
.rrs-footer-bold { font-weight: 700; }
.rrs-footer-copy { font-size: 11px; color: #888; margin-top: 12px; }

/* Mobile */
@media (max-width: 600px) {
  #div1 { height: auto; width: 100%; }
  #div3 { padding: 10px; }
  .sub-container { flex-direction: column; width: auto; }
  .sub1, .sub2 { width: 100%; margin: 10px 0; padding: 0 10px; }
  .rs { width: 100%; }
  .rs input { width: 100%; }
  .rs button[type="submit"] { width: 220px; }
  .rrs-footer-logo { height: 90px; }
  .rrs-footer-line { max-width: 80px; }
}
