/**
 * GS Rental Request v3 — Inline styling matching globalstillas.no
 * Colors: Dark #1a1a2e, Yellow #f5a623 (CTA), White cards, Light gray bg
 * Font: inherits site font (DM Sans / system)
 */

#gsrr-app { max-width: 680px; margin: 0 auto; padding: 20px 16px; }

/* ─── Step Indicator ─── */
.gsrr-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; }
.gsrr-step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gsrr-step-dot span { width: 32px; height: 32px; border-radius: 50%; background: #e0e0e0; color: #999; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: all .3s; }
.gsrr-step-dot small { font-size: 11px; color: #999; }
.gsrr-step-dot.active span { background: #1a1a2e; color: #fff; }
.gsrr-step-dot.active small { color: #1a1a2e; font-weight: 600; }
.gsrr-step-dot.done span { background: #28a745; color: #fff; }
.gsrr-step-dot.done small { color: #28a745; }
.gsrr-step-line { flex: 1; height: 2px; background: #e0e0e0; margin: 0 6px; margin-bottom: 18px; min-width: 24px; }

/* ─── Card ─── */
.gsrr-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.gsrr-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #1a1a2e; }
.gsrr-card h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: #1a1a2e; }
.gsrr-subtitle { color: #666; font-size: 14px; margin: 0 0 24px; line-height: 1.5; }

/* ─── Inputs ─── */
.gsrr-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; margin-top: 14px; }
.gsrr-input { width: 100%; padding: 10px 14px; border: 1.5px solid #d0d0d0; border-radius: 8px; font-size: 15px; color: #1a1a2e; background: #fff; transition: border-color .2s; box-sizing: border-box; font-family: inherit; }
.gsrr-input:focus { outline: none; border-color: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,26,46,.08); }
.gsrr-input-lg { font-size: 22px; text-align: center; letter-spacing: 6px; font-weight: 700; max-width: 160px; }
.gsrr-textarea { resize: vertical; }
.gsrr-hint { font-size: 12px; color: #888; margin-top: 4px; }
.gsrr-hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }

/* ─── Layout helpers ─── */
.gsrr-row { display: flex; gap: 14px; flex-wrap: wrap; }
.gsrr-col-half { flex: 1; min-width: 200px; }
.gsrr-col-narrow { flex: 0 0 160px; }
.gsrr-col-fill { flex: 1; }
.gsrr-col-btn { display: flex; align-items: flex-end; padding-bottom: 1px; }

/* ─── Buttons ─── */
.gsrr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border: none; transition: all .2s; text-decoration: none; line-height: 1.3; }
.gsrr-btn-yellow { background: #f5a623; color: #fff; }
.gsrr-btn-yellow:hover { background: #e09010; color: #fff; }
.gsrr-btn-yellow:disabled { background: #ccc; cursor: not-allowed; color: #fff; }
.gsrr-btn-dark { background: #1a1a2e; color: #fff; }
.gsrr-btn-dark:hover { background: #2d2d4a; color: #fff; }
.gsrr-btn-ghost { background: transparent; color: #666; border: 1.5px solid #d0d0d0; }
.gsrr-btn-ghost:hover { background: #f5f5f5; color: #333; }
.gsrr-btn-lg { padding: 14px 36px; font-size: 16px; }

/* ─── Toggle (Business/Private) ─── */
.gsrr-toggle-group { display: flex; gap: 8px; margin-bottom: 20px; }
.gsrr-toggle { flex: 1; padding: 12px; border: 2px solid #d0d0d0; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: #888; text-align: center; transition: all .2s; }
.gsrr-toggle.active { border-color: #1a1a2e; color: #1a1a2e; background: #f8f8fc; }
.gsrr-toggle:hover { border-color: #999; }

/* ─── Radio Cards ─── */
.gsrr-radio-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.gsrr-rcard { display: block; cursor: pointer; }
.gsrr-rcard input { display: none; }
.gsrr-rcard > div { padding: 14px 18px; border: 2px solid #e0e0e0; border-radius: 10px; transition: all .2s; background: #fff; }
.gsrr-rcard input:checked + div { border-color: #1a1a2e; background: #f8f8fc; }
.gsrr-rcard div strong { display: block; font-size: 14px; color: #1a1a2e; }
.gsrr-rcard div span { display: block; font-size: 13px; color: #666; margin-top: 2px; }
.gsrr-deposit-val { font-weight: 700; color: #1a1a2e; margin-top: 6px; font-size: 16px; }

/* ─── Checkbox ─── */
.gsrr-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; margin-bottom: 8px; line-height: 1.4; color: #333; }
.gsrr-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #1a1a2e; }

/* ─── Nav ─── */
.gsrr-nav { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }

/* ─── BRREG Dropdown ─── */
.gsrr-brreg-wrap { position: relative; }
.gsrr-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1.5px solid #d0d0d0; border-top: none; border-radius: 0 0 8px 8px; max-height: 260px; overflow-y: auto; z-index: 100; box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.gsrr-dd-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: background .1s; }
.gsrr-dd-item:hover { background: #f7f7f7; }
.gsrr-dd-name { font-weight: 600; font-size: 14px; color: #1a1a2e; }
.gsrr-dd-meta { font-size: 12px; color: #888; }

/* ─── Postal Result ─── */
#gsrr-pc-result { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
#gsrr-pc-result.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
#gsrr-pc-result.warn { background: #fff8e1; color: #f57f17; border: 1px solid #fff9c4; }
#gsrr-pc-result.fail { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ─── Items Summary ─── */
.gsrr-items { margin-bottom: 20px; }
.gsrr-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.gsrr-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.gsrr-item-body { flex: 1; }
.gsrr-item-name { font-weight: 600; font-size: 14px; color: #1a1a2e; }
.gsrr-item-sub { font-size: 12px; color: #888; }
.gsrr-item-total { font-weight: 700; font-size: 14px; color: #1a1a2e; min-width: 80px; text-align: right; }
.gsrr-item-rm { background: none; border: none; color: #c62828; cursor: pointer; font-size: 18px; padding: 2px 6px; }
.gsrr-item-qty { width: 52px; text-align: center; padding: 4px; border: 1.5px solid #d0d0d0; border-radius: 6px; font-size: 14px; }

/* ─── Info box ─── */
.gsrr-info { background: #f8f8fc; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 12px; }

/* ─── Agreement box ─── */
.gsrr-agreement-box { margin: 20px 0; border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; }
.gsrr-agreement-box h3 { margin: 0; padding: 14px 18px; background: #f8f8fc; font-size: 14px; border-bottom: 1px solid #e0e0e0; }
.gsrr-agreement-content { max-height: 200px; overflow-y: auto; padding: 16px 18px; font-size: 13px; line-height: 1.6; color: #444; }
.gsrr-agreement-box .gsrr-check { padding: 12px 18px; border-top: 1px solid #e0e0e0; margin: 0; }

/* ─── Review table ─── */
.gsrr-review-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.gsrr-review-table th { text-align: left; padding: 8px 0; font-size: 13px; color: #888; font-weight: 500; width: 150px; vertical-align: top; }
.gsrr-review-table td { padding: 8px 0; font-size: 14px; color: #1a1a2e; }
.gsrr-review-products { margin-top: 16px; }
.gsrr-review-products table { width: 100%; border-collapse: collapse; }
.gsrr-review-products th { text-align: left; padding: 8px 0; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #eee; }
.gsrr-review-products td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.gsrr-review-products .gsrr-total-row td { font-weight: 700; font-size: 16px; color: #1a1a2e; border-bottom: none; padding-top: 14px; }

/* ─── Confirmation ─── */
.gsrr-done-inner { text-align: center; padding: 40px 20px; }
.gsrr-done-check { width: 56px; height: 56px; border-radius: 50%; background: #28a745; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }

/* ─── Product Page Button ─── */
.gsrr-rent-btn.single_add_to_cart_button { background: transparent !important; color: #1a1a2e !important; border: 2px solid #1a1a2e !important; border-radius: 8px !important; }
.gsrr-rent-btn.single_add_to_cart_button:hover { background: #1a1a2e !important; color: #fff !important; }
.gsrr-rent-btn.gsrr-added { background: #28a745 !important; color: #fff !important; border-color: #28a745 !important; }
.gsrr-rent-notice { font-size: 14px; line-height: 1.5; }

/* ─── Loading ─── */
.gsrr-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: gsrr-spin .5s linear infinite; vertical-align: middle; }
@keyframes gsrr-spin { to { transform: rotate(360deg); } }

/* ─── Phone hint colors ─── */
.gsrr-phone-hint.ok { color: #28a745; }
.gsrr-phone-hint.warn { color: #f57f17; }
.gsrr-phone-hint.err { color: #c62828; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
    #gsrr-app { padding: 12px 8px; }
    .gsrr-card { padding: 20px 16px; border-radius: 8px; }
    .gsrr-row { flex-direction: column; gap: 0; }
    .gsrr-col-narrow, .gsrr-col-half { flex: 1; min-width: 0; }
    .gsrr-nav { flex-direction: column-reverse; gap: 8px; }
    .gsrr-nav .gsrr-btn { width: 100%; text-align: center; }
    .gsrr-toggle-group { flex-direction: column; }
    .gsrr-steps { gap: 0; }
    .gsrr-step-dot small { font-size: 9px; }
}
