/* ═══════════════════════════════════════════════════════
   RMS Beton Calculator — Frontend CSS
   Huisstijl: Rood / Zwart / Wit
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables — overridden by JS from config */
:root {
    --rms-primary: #C8102E;
    --rms-dark: #1A1A1A;
    --rms-gray: #F7F7F7;
    --rms-border: #E8E8E8;
    --rms-radius: 14px;
}

.rms-calc { font-family: 'Inter', -apple-system, sans-serif; color: var(--rms-dark); line-height: 1.5; -webkit-overflow-scrolling: touch; }
.rms-calc * { box-sizing: border-box; margin: 0; padding: 0; }
.rms-calc input:focus, .rms-calc select:focus, .rms-calc textarea:focus { outline: none; border-color: var(--rms-primary) !important; }
/* iOS zoom prevention: font-size >= 16px prevents Safari from zooming on focus */
.rms-calc input, .rms-calc select, .rms-calc textarea { font-size: 16px !important; }
/* iOS scroll fix: allow vertical scrolling through buttons/cards */
.rms-calc button { cursor: pointer; transition: all 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-calc button:active { transform: scale(0.98); }
.rms-calc ::selection { background: var(--rms-primary); color: white; }

/* ═══ STICKY HEADER ═══ */
.rms-sticky { position: sticky; top: 0; z-index: 100; background: white; border-bottom: 3px solid var(--rms-primary); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.rms-sticky-inner { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.rms-sticky-left { display: flex; align-items: center; gap: 16px; }
.rms-logo-r { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--rms-primary); letter-spacing: 1px; }
.rms-sticky-title { display: flex; gap: 4px; align-items: center; }
.rms-sticky-title span { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--rms-dark); }
.rms-sticky-title .rms-accent { color: var(--rms-primary); }
.rms-sticky-right { display: flex; align-items: center; gap: 12px; }
.rms-price-label { font-size: 12px; font-weight: 600; color: #999; }
.rms-btw-toggle { display: flex; background: var(--rms-gray); border-radius: 8px; overflow: hidden; border: 1px solid var(--rms-border); }
.rms-btw-btn { padding: 6px 14px; font-size: 11px; font-weight: 700; border: none; background: transparent; color: #999; font-family: 'Inter', sans-serif; }
.rms-btw-btn.active { background: var(--rms-primary); color: white; }
.rms-sticky-price { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--rms-primary); letter-spacing: 1px; min-width: 90px; text-align: right; }

/* ═══ GRID LAYOUT ═══ */
.rms-wrapper { max-width: 1120px; margin: 0 auto; padding: 24px 20px; }
.rms-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.rms-right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }

/* ═══ STEP SECTIONS ═══ */
.rms-step { background: white; border-radius: var(--rms-radius); border: 1px solid var(--rms-border); margin-bottom: 14px; overflow: visible; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.rms-step-header { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--rms-border); background: #FCFCFC; border-radius: var(--rms-radius) var(--rms-radius) 0 0; }
.rms-badge { background: var(--rms-primary); color: white; border-radius: 8px; padding: 4px 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.rms-step-header h3 { font-size: 15px; font-weight: 800; }
.rms-step-body { padding: 18px 20px; position: relative; }

/* ═══ MAIN INPUT ═══ */
.rms-main-input { width: 100%; padding: 14px 16px; font-size: 15px; font-weight: 600; border: 2px solid var(--rms-border); border-radius: 12px; background: var(--rms-gray); font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.rms-warn { margin-top: 10px; padding: 10px 14px; background: #FFF5F5; border: 1px solid #FED7D7; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--rms-primary); }

/* ═══ CARD GRIDS ═══ */
.rms-card-grid { display: grid; gap: 10px; }
.rms-4col { grid-template-columns: repeat(4, 1fr); }
.rms-3col { grid-template-columns: repeat(3, 1fr); }

.rms-option-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; background: var(--rms-gray); border: 2px solid var(--rms-border); border-radius: var(--rms-radius); cursor: pointer; transition: all 0.2s; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-option-card:hover { border-color: #ccc; }
.rms-option-card.active { border-color: var(--rms-primary); background: #FFF5F5; box-shadow: 0 0 0 3px rgba(200,16,46,0.08); }
.rms-option-card .rms-card-icon { font-size: 28px; transition: color 0.2s; color: #999; }
.rms-option-card.active .rms-card-icon { color: var(--rms-primary); }
.rms-option-card .rms-card-label { font-size: 11px; font-weight: 700; color: var(--rms-dark); line-height: 1.3; }

/* Samenstelling cards — icon card style with checkbox */
.rms-samen-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 12px 16px; background: var(--rms-gray); border: 2px solid var(--rms-border); border-radius: var(--rms-radius); cursor: pointer; transition: all 0.2s; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; overflow: visible; min-height: 120px; }
.rms-samen-card:hover { border-color: #ccc; }
.rms-samen-card.active { border-color: var(--rms-primary); background: #FFF5F5; box-shadow: 0 0 0 3px rgba(200,16,46,0.08); }
.rms-samen-card .rms-card-icon { display: flex; align-items: center; justify-content: center; min-height: 48px; color: #999; transition: color 0.2s; }
.rms-samen-card .rms-card-icon img { width: 48px; height: 48px; object-fit: contain; display: block; }
.rms-samen-card .rms-card-icon svg { width: 40px; height: 40px; }
.rms-samen-card.active .rms-card-icon { color: var(--rms-primary); }
.rms-samen-name { font-size: 12px; font-weight: 700; color: var(--rms-dark); line-height: 1.3; }
.rms-samen-check { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rms-border); background: white; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; z-index: 2; }
.rms-samen-card.active .rms-samen-check { background: var(--rms-primary); border-color: var(--rms-primary); }
.rms-samen-check svg { display: none; width: 12px; height: 12px; }
.rms-samen-card.active .rms-samen-check svg { display: block; }
.rms-samen-price { font-size: 12px; font-weight: 700; color: #999; }
/* Ensure info button doesn't overlap checkbox */
.rms-samen-card > .rms-info-btn { top: 8px; right: 8px; z-index: 3; }

/* Uitvoering */
.rms-uitv-card { display: block; width: 100%; padding: 16px 20px; margin-bottom: 10px; background: var(--rms-gray); border: 2px solid var(--rms-border); border-radius: var(--rms-radius); cursor: pointer; text-align: left; transition: all 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-uitv-card:hover { border-color: #ccc; }
.rms-uitv-card.active { border-color: var(--rms-primary); background: #FFF5F5; }
.rms-uitv-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rms-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color 0.2s; }
.rms-uitv-card.active .rms-radio { border-color: var(--rms-primary); }
.rms-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rms-primary); display: none; }
.rms-uitv-card.active .rms-radio-dot { display: block; }
.rms-uitv-label { font-size: 14px; font-weight: 800; }
.rms-uitv-price { font-size: 13px; font-weight: 700; color: var(--rms-primary); margin-left: 4px; }
.rms-uitv-desc { font-size: 12px; color: #777; line-height: 1.6; padding-left: 32px; }

/* ═══ SELECTS & ROWS ═══ */
.rms-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rms-select { flex: 1; min-width: 0; padding: 12px 14px; font-size: 14px; font-weight: 500; border: 2px solid var(--rms-border); border-radius: 12px; background: var(--rms-gray); font-family: 'Inter', sans-serif; width: 100%; }
.rms-note { font-size: 12px; color: #999; margin-bottom: 12px; font-style: italic; }

/* ═══ LOSWIJZE SUB-FIELDS ═══ */
.rms-loswijze-sub { padding: 14px 16px; background: var(--rms-gray); border-radius: 12px; border: 1px solid var(--rms-border); }
.rms-sub-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--rms-dark); }
.rms-sub-hint { font-size: 11px; color: #999; margin-top: 8px; line-height: 1.5; }
.rms-loswijze-sub .rms-select,
.rms-loswijze-sub .rms-main-input { border-color: var(--rms-border); background: white; }

/* ═══ CTA SECTION ═══ */
.rms-cta-section { margin-top: 8px; }
.rms-cta-summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--rms-dark); border-radius: var(--rms-radius) var(--rms-radius) 0 0; color: white; }
.rms-cta-summary span:first-child { font-size: 14px; font-weight: 600; }
.rms-cta-price { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; }
.rms-cta-buttons { display: flex; gap: 0; }
.rms-cta-buttons button { flex: 1; padding: 17px; font-size: 14px; font-weight: 800; border: none; font-family: 'Inter', sans-serif; letter-spacing: 0.02em; }
.rms-btn-pay { background: var(--rms-primary); color: white; border-radius: 0 0 0 var(--rms-radius); }
.rms-btn-pay:hover { filter: brightness(1.1); }
.rms-btn-inquiry { background: #16A34A; color: white; border-radius: 0 0 var(--rms-radius) 0; border-left: 1px solid rgba(255,255,255,0.15) !important; }
.rms-btn-inquiry:hover { background: #15803D; }
.rms-btn-full { border-radius: 0 0 var(--rms-radius) var(--rms-radius) !important; width: 100%; }

/* ═══ BREAKDOWN ═══ */
.rms-breakdown { background: white; border-radius: var(--rms-radius); border: 1px solid var(--rms-border); padding: 20px 24px; margin-top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.rms-breakdown h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.rms-bd-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; font-weight: 500; color: #555; }
.rms-bd-line.warn { color: var(--rms-primary); }
.rms-bd-line.bold { font-weight: 800; }
.rms-bd-line.big { font-size: 17px; color: var(--rms-primary); font-weight: 800; }
.rms-bd-divider { height: 1px; background: var(--rms-border); margin: 8px 0; }

/* ═══ SIDEBAR — TEAM CARD ═══ */
.rms-team-card { background: white; border-radius: var(--rms-radius); border: 1px solid var(--rms-border); padding: 24px 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.rms-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #FFF5F5, #F5F5F5); border: 3px solid var(--rms-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 44px; }
.rms-team-quote { font-size: 13px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.rms-team-note { font-size: 12px; color: #777; line-height: 1.6; margin-bottom: 14px; }
.rms-hr { border: none; height: 1px; background: var(--rms-border); margin: 14px 0; }
.rms-team-attrib { font-size: 12px; color: #999; font-style: italic; line-height: 1.5; }
.rms-team-name { font-size: 11px; font-weight: 700; color: var(--rms-primary); margin-top: 4px; }

/* ═══ SIDEBAR — VOLUME CALCULATOR ═══ */
.rms-vol-card { background: white; border-radius: var(--rms-radius); border: 1px solid var(--rms-border); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.rms-vol-header { background: var(--rms-dark); padding: 18px 20px; text-align: center; }
.rms-vol-title { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: white; letter-spacing: 2px; }
.rms-vol-sub { display: block; font-size: 10px; font-weight: 700; color: var(--rms-primary); letter-spacing: 2px; margin-top: 3px; text-transform: uppercase; }
.rms-vol-body { padding: 20px; }
.rms-vfield { margin-bottom: 12px; }
.rms-vfield label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.rms-vfield label span { font-weight: 500; color: #999; }
.rms-vfield input { width: 100%; padding: 11px 14px; font-size: 14px; font-weight: 500; border: 2px solid var(--rms-border); border-radius: 10px; background: var(--rms-gray); font-family: 'Inter', sans-serif; }
.rms-vol-result { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 20px 0 16px; }
.rms-vol-num { font-family: 'Bebas Neue', sans-serif; font-size: 56px; letter-spacing: 1px; line-height: 1; }
.rms-vol-unit { font-size: 20px; font-weight: 700; color: #999; }
.rms-vol-btn { width: 100%; padding: 13px; font-size: 14px; font-weight: 800; color: white; background: var(--rms-primary); border: none; border-radius: 10px; font-family: 'Inter', sans-serif; margin-bottom: 8px; }
.rms-vol-transfer { width: 100%; padding: 10px; font-size: 12px; font-weight: 700; color: var(--rms-primary); background: #FFF5F5; border: 1.5px solid var(--rms-primary); border-radius: 10px; font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.rms-vol-tip { font-size: 11px; color: #999; text-align: center; line-height: 1.5; margin-top: 10px; }

/* ═══ MODAL ═══ */
.rms-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding: 60px 12px 20px; backdrop-filter: blur(4px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rms-modal { background: white; border-radius: 20px; max-width: 540px; width: 100%; max-height: none; overflow-y: visible; padding: 28px 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); margin: 0 auto; }
.rms-modal-close { position: absolute; top: 12px; right: 12px; background: #f5f5f5; border: none; font-size: 22px; color: #666; line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; z-index: 2; }
.rms-modal-close:hover, .rms-modal-close:active { background: #eee; color: #333; }
.rms-modal-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; padding-right: 40px; }
.rms-modal-desc { font-size: 13px; color: #777; margin-bottom: 16px; }
.rms-form-row { display: flex; gap: 12px; margin-bottom: 10px; }
.rms-form-field { flex: 1; }
.rms-form-field.rms-full { width: 100%; margin-bottom: 10px; }
.rms-form-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #555; }
.rms-form-field input, .rms-form-field textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 2px solid var(--rms-border); border-radius: 10px; background: var(--rms-gray); font-family: 'Inter', sans-serif; resize: vertical; }
.rms-modal-summary { background: var(--rms-gray); border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: 12px; color: #555; line-height: 1.6; }
.rms-modal-summary strong { color: var(--rms-primary); }
.rms-inq-submit { width: 100%; padding: 16px; font-size: 15px; font-weight: 800; color: white; background: #16A34A; border: none; border-radius: 12px; font-family: 'Inter', sans-serif; }
.rms-inq-submit:hover { background: #15803D; }
.rms-inq-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.rms-inq-feedback { margin-top: 10px; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.rms-inq-feedback.success { background: #F0FDF4; color: #166534; }
.rms-inq-feedback.error { background: #FFF5F5; color: var(--rms-primary); }

/* Success modal */
.rms-success-modal { text-align: center; padding: 48px 32px; }
.rms-success-icon { font-size: 56px; margin-bottom: 16px; }
.rms-success-modal h2 { font-size: 24px; margin-bottom: 8px; }
.rms-success-modal p { color: #777; margin-bottom: 24px; }

/* ═══ INFO POPUPS ═══ */
.rms-info-btn { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--rms-primary); color: white; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; cursor: pointer; z-index: 10; font-style: normal; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-info-btn:hover { filter: brightness(1.15); transform: scale(1.1); }
.rms-option-card, .rms-samen-card { position: relative; overflow: visible; }
.rms-card-grid { overflow: visible; }
.rms-info-popup { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 10px); width: 280px; background: var(--rms-dark); color: white; padding: 14px 16px 14px 14px; border-radius: 12px; font-size: 13px; line-height: 1.65; font-weight: 500; z-index: 9999; box-shadow: 0 12px 36px rgba(0,0,0,0.25); pointer-events: auto; }
.rms-info-popup::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid var(--rms-dark); }
.rms-info-close { position: absolute; top: 4px; right: 4px; cursor: pointer; font-size: 18px; opacity: 0.7; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-info-close:hover, .rms-info-close:active { opacity: 1; background: rgba(255,255,255,0.15); }

/* ═══ HIDDEN OPTION PRICES MODE ═══ */
.rms-calc.no-option-prices .rms-samen-price { display: none !important; }
.rms-calc.no-option-prices .rms-uitv-price { display: none !important; }

/* ═══ FAQ ACCORDION ═══ */
.rms-faq { margin-top: 20px; }
.rms-faq-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; margin-bottom: 12px; }
.rms-faq-item { background: white; border: 1px solid var(--rms-border); border-radius: var(--rms-radius); margin-bottom: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.rms-faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.rms-faq-item.open { border-color: var(--rms-primary); box-shadow: 0 0 0 2px rgba(200,16,46,0.06); }
.rms-faq-q { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px; background: none; border: none; text-align: left; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--rms-dark); gap: 12px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rms-faq-q:hover { color: var(--rms-primary); }
.rms-faq-chevron { flex-shrink: 0; color: #999; transition: transform 0.25s ease, color 0.2s; }
.rms-faq-item.open .rms-faq-chevron { transform: rotate(180deg); color: var(--rms-primary); }
.rms-faq-a { display: none; }
.rms-faq-a-inner { padding: 0 20px 18px; font-size: 13px; line-height: 1.7; color: #555; }

/* ═══ HIDDEN PRICES MODE ═══ */
.rms-calc.no-prices .rms-sticky-right { display: none !important; }
.rms-calc.no-prices .rms-cta-summary { display: none !important; }
.rms-calc.no-prices .rms-samen-price { display: none !important; }
.rms-calc.no-prices .rms-uitv-price { display: none !important; }
.rms-calc.no-prices .rms-breakdown { display: none !important; }
.rms-calc.no-prices .rms-cta-buttons { border-radius: var(--rms-radius); overflow: hidden; }

/* ═══ RESPONSIVE ═══ */

/* Prevent horizontal overflow globally */
.rms-calc { overflow-x: hidden; max-width: 100vw; }
.rms-calc *, .rms-calc *::before, .rms-calc *::after { max-width: 100%; }
.rms-calc input, .rms-calc select, .rms-calc textarea, .rms-calc button { max-width: 100%; }

/* Tablet */
@media (max-width: 900px) {
    .rms-grid { grid-template-columns: 1fr !important; }
    .rms-right { position: static !important; order: -1; }
    .rms-4col { grid-template-columns: repeat(2, 1fr) !important; }
    .rms-3col { grid-template-columns: repeat(2, 1fr) !important; }
    .rms-sticky-inner { flex-direction: column; text-align: center; }
    .rms-sticky-left, .rms-sticky-right { justify-content: center; }
    .rms-form-row { flex-direction: column; }
}

/* iPhone Max / larger phones (max 430px) */
@media (max-width: 480px) {
    .rms-wrapper { padding: 16px 12px; }
    .rms-sticky-inner { padding: 8px 12px; gap: 6px; }
    .rms-sticky-price { font-size: 28px; min-width: 70px; }
    .rms-sticky-title span { font-size: 16px; }
    .rms-logo-r { font-size: 22px; }
    .rms-sticky-left { gap: 10px; }
    .rms-sticky-right { gap: 8px; }
    .rms-btw-btn { padding: 5px 10px; font-size: 10px; }
    .rms-price-label { font-size: 11px; }

    .rms-step-header { padding: 10px 14px; gap: 8px; }
    .rms-step-header h3 { font-size: 13px; }
    .rms-badge { padding: 3px 10px; font-size: 10px; }
    .rms-step-body { padding: 14px; }

    .rms-4col { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .rms-3col { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .rms-option-card { padding: 12px 4px; gap: 6px; }
    .rms-option-card .rms-card-icon svg { width: 32px; height: 32px; }
    .rms-option-card .rms-card-label { font-size: 10px; }

    .rms-samen-card { padding: 10px; }
    .rms-samen-name { font-size: 12px; }
    .rms-samen-price { font-size: 12px; }

    .rms-main-input { padding: 12px; font-size: 14px; }
    .rms-select { min-width: 0 !important; padding: 10px 12px; font-size: 13px; }
    .rms-row { flex-direction: column; gap: 8px; }

    .rms-uitv-card { padding: 12px 14px; }
    .rms-uitv-label { font-size: 13px; }
    .rms-uitv-desc { font-size: 11px; padding-left: 28px; }

    .rms-cta-summary { padding: 12px 14px; }
    .rms-cta-summary span:first-child { font-size: 12px; }
    .rms-cta-price { font-size: 24px; }
    .rms-cta-buttons { flex-direction: column; }
    .rms-btn-pay { border-radius: 0 !important; }
    .rms-btn-inquiry { border-radius: 0 0 var(--rms-radius) var(--rms-radius) !important; border-left: none !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
    .rms-cta-buttons button { padding: 14px; font-size: 13px; }

    .rms-bd-line { font-size: 12px; }
    .rms-bd-line.big { font-size: 15px; }
    .rms-breakdown { padding: 14px 16px; }

    /* Sidebar cards on mobile */
    .rms-team-card { padding: 18px 14px; }
    .rms-team-quote { font-size: 12px; }
    .rms-team-note { font-size: 11px; }
    .rms-avatar { width: 64px; height: 64px; font-size: 36px !important; }

    .rms-vol-body { padding: 14px; }
    .rms-vol-title { font-size: 18px; }
    .rms-vol-num { font-size: 44px; }
    .rms-vfield input { padding: 10px 12px; font-size: 13px; }

    /* Modal */
    .rms-modal-overlay { padding: 50px 8px 16px; }
    .rms-modal { padding: 24px 16px; border-radius: 16px; }
    .rms-modal-close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 20px; }
    .rms-modal-title { font-size: 17px; padding-right: 36px; }
    .rms-form-field input, .rms-form-field textarea { padding: 9px 10px; font-size: 13px; }
    .rms-inq-submit { padding: 14px; font-size: 14px; }
    .rms-modal-summary { font-size: 11px; padding: 10px 12px; }
    /* Info popup close bigger on mobile */
    .rms-info-close { width: 38px; height: 38px; font-size: 20px; top: 2px; right: 2px; }
}

/* iPhone SE / small phones (max 375px) */
@media (max-width: 375px) {
    .rms-wrapper { padding: 12px 8px; }
    .rms-sticky-inner { padding: 6px 10px; }
    .rms-sticky-title span { font-size: 14px; }
    .rms-logo-r { font-size: 20px; }
    .rms-sticky-price { font-size: 24px; min-width: 60px; }

    .rms-step-header { padding: 8px 12px; }
    .rms-step-body { padding: 12px 10px; }
    .rms-badge { padding: 2px 8px; font-size: 9px; }
    .rms-step-header h3 { font-size: 12px; }

    .rms-4col { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .rms-3col { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .rms-option-card { padding: 10px 2px; border-radius: 10px; }
    .rms-option-card .rms-card-icon svg { width: 28px; height: 28px; }
    .rms-option-card .rms-card-label { font-size: 9px; }

    .rms-samen-card { padding: 8px; border-radius: 8px; }
    .rms-samen-check { width: 18px; height: 18px; border-radius: 4px; }
    .rms-samen-name { font-size: 11px; }
    .rms-samen-price { font-size: 11px; }

    .rms-vol-header { padding: 12px 14px; }
    .rms-vol-title { font-size: 16px; letter-spacing: 1px; }
    .rms-vol-num { font-size: 38px; }

    .rms-cta-price { font-size: 20px; }
}

