/* ── Hostripples Order Form ───────────────────────────────────────────────── */

:root {
  --hrof-primary : var(--hr-primary, #103DBE);
  --hrof-accent  : var(--hr-royal,   #3967E6);
  --hrof-radius  : 10px;
  --hrof-border  : #dee2e6;
}

/* ── Page wrapper ── */
#hrof-wrap {
  max-width: 100%;
  padding: 0 0 3rem;
  font-family: 'Nunito', sans-serif;
}

/* ── Stepper ── */
.hrof-stepper {
  display: flex;
  align-items: center;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--hrof-border);
}
.hrof-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.hrof-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.hrof-step-num.done   { background: var(--hrof-accent); color: #fff; }
.hrof-step-num.active { background: var(--hrof-accent); color: #fff; }
.hrof-step-num.idle   { background: #f1f3f5; color: #888; border: 1px solid var(--hrof-border); }
.hrof-step-label      { font-size: 13px; color: #888; }
.hrof-step-label.active { color: var(--hrof-accent); font-weight: 600; }
.hrof-step-line       { flex: 1; height: 1px; background: var(--hrof-border); margin: 0 10px; }
.hrof-step-line.done  { background: var(--hrof-accent); }

/* ── Group headline ── */
.hrof-group-head {
  padding: 0 0 1.5rem;
}
.hrof-group-head h1 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.hrof-group-head p  { font-size: 14px; color: #666; margin: 0; }

/* ── Plan card grid ── */
.hrof-plan-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 2rem;
}
.hrof-plan-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hrof-plan-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hrof-plan-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .hrof-plan-grid.cols-3,
  .hrof-plan-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hrof-plan-grid { grid-template-columns: 1fr !important; }
  .hrof-stepper   { overflow-x: auto; }
}

/* ── Plan card ── */
.hrof-card {
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .15s;
}
.hrof-card:hover { box-shadow: 0 4px 20px rgba(57,103,230,.12); transform: translateY(-2px); }
.hrof-card.featured { border: 2px solid var(--hrof-accent); }

.hrof-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--hrof-accent); color: #fff;
  font-size: 10px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; z-index: 1; letter-spacing: .03em;
}

.hrof-card-img {
  width: 100%; height: 100px;
  background: linear-gradient(135deg, var(--hrof-primary) 0%, var(--hrof-accent) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hrof-card-img img   { width: 100%; height: 100%; object-fit: cover; }
.hrof-card-img .icon { font-size: 40px; color: rgba(255,255,255,.45); }

.hrof-card-body { padding: 1rem 1rem .75rem; flex: 1; }
.hrof-card-name { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.hrof-card-tag  { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: .75rem; }
.hrof-features  { list-style: none; padding: 0; margin: 0 0 .5rem; }
.hrof-features li {
  font-size: 12px; color: #555;
  padding: 3px 0; display: flex; align-items: flex-start; gap: 6px;
}
.hrof-features li::before {
  content: '✓'; color: var(--hrof-accent);
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

.hrof-card-footer {
  padding: .75rem 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.hrof-price      { font-size: 22px; font-weight: 700; color: var(--hrof-accent); }
.hrof-price-cycle{ font-size: 11px; color: #888; margin-top: 1px; }
.hrof-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.btn-hrof-select {
  background: var(--hrof-accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn-hrof-select:hover { background: var(--hrof-primary); }
.hrof-card.featured .btn-hrof-select { background: var(--hrof-primary); }

.btn-hrof-more {
  background: transparent; border: none;
  color: var(--hrof-accent); font-size: 11px;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.btn-hrof-more:hover { text-decoration: underline; }

/* ── Configure step ── */
.hrof-configure { background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); padding: 1.5rem; }
.hrof-section-title { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid #f0f0f0; }
.hrof-product-name  { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0 0 .25rem; }
.hrof-product-desc  { font-size: 13px; color: #666; margin: 0 0 1.5rem; }

/* Billing cycle tabs */
.hrof-cycle-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hrof-cycle-tab {
  padding: 8px 16px; border: 1px solid var(--hrof-border);
  border-radius: 6px; cursor: pointer; font-size: 13px;
  background: #fff; color: #555; line-height: 1.3;
  transition: all .15s;
}
.hrof-cycle-tab .saving { font-size: 10px; color: #22c55e; display: block; margin-top: 2px; }
.hrof-cycle-tab.selected {
  border-color: var(--hrof-accent); background: #eef1fd;
  color: var(--hrof-accent); font-weight: 600;
}
.hrof-cycle-tab:hover:not(.selected) { border-color: #bbb; }

/* Billing cycle radio */
.hrof-cycle-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.hrof-cycle-radio  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--hrof-border); border-radius: 6px; cursor: pointer; }
.hrof-cycle-radio:has(input:checked) { border-color: var(--hrof-accent); background: #eef1fd; }

/* Billing cycle dropdown */
.hrof-cycle-select { width: 100%; max-width: 320px; padding: 8px 12px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; margin-bottom: 1.25rem; }

/* Addons */
.hrof-addon-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.hrof-addon-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--hrof-border); border-radius: 6px;
  cursor: pointer; transition: border-color .15s;
}
.hrof-addon-item:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-addon-price { font-size: 13px; color: var(--hrof-accent); font-weight: 600; }

.hrof-addon-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.hrof-addon-card  {
  border: 1px solid var(--hrof-border); border-radius: 8px; padding: .85rem;
  cursor: pointer; transition: border-color .15s;
}
.hrof-addon-card:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-addon-card input { display: none; }

/* Step nav buttons */
.hrof-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-hrof-back { background: transparent; border: 1px solid var(--hrof-border); color: #555; padding: 8px 18px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn-hrof-continue { background: var(--hrof-accent); color: #fff; border: none; padding: 9px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-hrof-continue:hover { background: var(--hrof-primary); }

/* ── Checkout ── */
.hrof-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) { .hrof-checkout-grid { grid-template-columns: 1fr; } }

.hrof-checkout-panel { background: #fff; border: 1px solid var(--hrof-border); border-radius: var(--hrof-radius); padding: 1.5rem; }
.hrof-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .hrof-form-row { grid-template-columns: 1fr; } }
.hrof-field { margin-bottom: 14px; }
.hrof-field label { font-size: 12px; color: #555; display: block; margin-bottom: 4px; font-weight: 500; }
.hrof-field input, .hrof-field select {
  width: 100%; padding: 8px 12px; font-size: 13px;
  border: 1px solid var(--hrof-border); border-radius: 6px;
  background: #fff; color: #1a1a2e;
  transition: border-color .15s;
}
.hrof-field input:focus, .hrof-field select:focus { border-color: var(--hrof-accent); outline: none; box-shadow: 0 0 0 3px rgba(57,103,230,.1); }

/* Payment gateways */
.hrof-gateways { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hrof-gateway  {
  padding: 8px 14px; border: 1px solid var(--hrof-border); border-radius: 6px;
  cursor: pointer; font-size: 12px; color: #555;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.hrof-gateway.selected { border-color: var(--hrof-accent); background: #eef1fd; color: var(--hrof-accent); font-weight: 600; }
.hrof-gateway-fields { margin-top: 10px; }

/* Order summary */
.hrof-summary { position: sticky; top: 90px; }
.hrof-summary-line { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 8px; }
.hrof-summary-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #1a1a2e; border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 4px; }
.hrof-summary-item-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.hrof-summary-item-cycle { font-size: 12px; color: #888; margin-bottom: 12px; }

.btn-hrof-order {
  display: block; width: 100%; background: var(--hrof-accent); color: #fff;
  border: none; border-radius: 6px; padding: 12px; font-size: 14px;
  font-weight: 600; cursor: pointer; text-align: center;
  margin-top: 14px; transition: background .15s;
}
.btn-hrof-order:hover { background: var(--hrof-primary); }
.hrof-secure-note { text-align: center; font-size: 11px; color: #aaa; margin-top: 8px; }

/* Existing account login toggle */
.hrof-login-toggle { font-size: 13px; color: var(--hrof-accent); cursor: pointer; margin-bottom: 1rem; }
.hrof-login-toggle:hover { text-decoration: underline; }

/* ── Complete page ── */
.hrof-complete { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); }
.hrof-complete-icon { font-size: 56px; color: #22c55e; margin-bottom: 1rem; }
.hrof-complete h2 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.hrof-complete p  { font-size: 14px; color: #666; }
.hrof-complete-actions { display: flex; gap: 10px; justify-content: center; margin-top: 1.5rem; }

/* ── Error page ── */
.hrof-error { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid #fca5a5; }
.hrof-error-icon { font-size: 48px; color: #ef4444; margin-bottom: 1rem; }

/* ── View cart ── */
.hrof-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hrof-cart-table th { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600; letter-spacing: .05em; border-bottom: 1px solid #f0f0f0; padding: 6px 0; }
.hrof-cart-table td { padding: 12px 0; border-bottom: 1px solid #f8f8f8; font-size: 13px; color: #333; vertical-align: middle; }
.hrof-cart-table td:last-child { text-align: right; }

/* ── Domain step ── */
.hrof-domain-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.hrof-domain-opt {
  border: 1px solid var(--hrof-border); border-radius: 8px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s;
}
.hrof-domain-opt:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-domain-opt-title { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.hrof-domain-opt-hint  { font-size: 12px; color: #888; margin-top: 2px; }
.hrof-domain-input-row { display: flex; gap: 8px; margin-top: 10px; }
.hrof-domain-input-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; }
.hrof-domain-input-row select { padding: 8px 10px; border: 1px solid var(--hrof-border); border-radius: 6px; font-size: 13px; }

/* ── Alert ── */
.hrof-alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 1rem; }
.hrof-alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.hrof-alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }

/* ── Complete page (v2 classes) ── */
.hrof-complete-wrap { text-align: center; padding: 3rem 2rem; background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); max-width: 560px; margin: 0 auto; }
.hrof-complete-title { font-size: 26px; font-weight: 700; color: #1a1a2e; margin: 0 0 .5rem; }
.hrof-complete-sub   { font-size: 14px; color: #666; margin: 0 0 1.5rem; }
.hrof-complete-panel { background: #f8f9fb; border: 1px solid #eee; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; text-align: left; }
.hrof-complete-meta  { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.hrof-complete-meta:last-child { border-bottom: 0; }

/* ── Domain option cards (configureproductdomain.tpl) ── */
.hrof-domain-options { display: flex; flex-direction: column; gap: 10px; margin: 1.5rem 0; }
.hrof-domain-option  { display: block; border: 1px solid var(--hrof-border); border-radius: 8px; padding: 0; cursor: pointer; transition: border-color .15s; }
.hrof-domain-option:has(input:checked) { border-color: var(--hrof-accent); background: #f8f9ff; }
.hrof-domain-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.hrof-domain-option-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.hrof-domain-option-icon { width: 38px; height: 38px; border-radius: 8px; background: #eef1fd; color: var(--hrof-accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hrof-domain-fields { padding: 0 1rem 1rem; }

/* ── Cart helpers ── */
.text-right { text-align: right; }
.hrof-viewcart { background: #fff; border-radius: var(--hrof-radius); border: 1px solid var(--hrof-border); padding: 1.5rem; }
.hrof-cart-remove { color: #aaa; font-size: 12px; transition: color .15s; }
.hrof-cart-remove:hover { color: #ef4444; }
.hrof-cart-total td { font-weight: 700; font-size: 14px; color: #1a1a2e; border-top: 2px solid #f0f0f0; padding-top: 14px; }

/* ── Utility ── */
.mb-3 { margin-bottom: 1rem; }

/* ── Group selection tiles (products.tpl — no group selected) ── */
.hrof-group-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.hrof-group-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  background: #fff;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.hrof-group-tile:hover { border-color: var(--hrof-accent); box-shadow: 0 2px 8px rgba(57,103,230,.08); }
.hrof-group-tile.disabled { opacity: .45; pointer-events: none; }
.hrof-group-tile-icon { color: var(--hrof-accent); font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.hrof-group-tile-name { flex: 1; }
.hrof-group-tile-arrow { color: #ccc; font-size: 12px; }

/* ── Category sidebar (products.tpl — group selected) ── */
.hrof-cat-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--hrof-border);
  border-radius: var(--hrof-radius);
  overflow: hidden;
  align-self: flex-start;
}
.hrof-cat-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background .12s, color .12s;
}
.hrof-cat-item:last-child { border-bottom: 0; }
.hrof-cat-item:hover { background: #f8f9fb; color: var(--hrof-accent); }
.hrof-cat-item.active { background: var(--hrof-accent); color: #fff; font-weight: 600; }
.hrof-cat-item.disabled { opacity: .45; pointer-events: none; }
