.mh-hosting{
  --bg:#f7f7fb;
  --panel:#ffffff;
  --muted:#f0f2f6;
  --text:#0f172a;
  --accent:#2563eb;
  --accent-soft:#e0e7ff;
  --accent-2:#059669;
  --danger:#dc2626;
  --outline:1px solid rgba(15,23,42,.06);
  --radius:18px;
  --shadow-soft:0 12px 30px rgba(15,23,42,.08);
  --shadow-card:0 8px 20px rgba(15,23,42,.06);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  font-size:14px;
  line-height:1.5;
}

/* Reset & base */
.mh-hosting *{
  box-sizing:border-box;
}
.mh-hosting a{
  color:var(--accent);
  text-decoration:none;
}
.mh-hosting a:hover{
  text-decoration:underline;
}

/* Header */
.mh-hosting header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.mh-hosting header h1{
  font-size:clamp(20px,3vw,26px);
  margin:0;
  letter-spacing:-0.02em;
}
.mh-hosting header p{
  margin:4px 0 0;
  opacity:.8;
  font-size:13px;
}

/* Stepper */
.mh-hosting .stepper{
  display:grid !important;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:10px 0 22px;
}
.mh-hosting .step{
  padding:10px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#fff,#f6f7f9);
  border:1px solid rgba(37,99,235,.12);
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#1e293b;
  position:relative;
  overflow:hidden;
}
.mh-hosting .step::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  background:radial-gradient(circle at top left,rgba(59,130,246,.18),transparent 55%);
  transition:opacity .25s ease;
}
.mh-hosting .step.active{
  background:linear-gradient(135deg,#dbeafe,#eff6ff);
  border-color:rgba(37,99,235,.4);
  box-shadow:0 0 0 1px rgba(37,99,235,.25) inset,var(--shadow-card);
}
.mh-hosting .step.active::after{
  opacity:1;
}
.mh-hosting .badge{
  display:inline-grid;
  place-items:center;
  min-width:24px;
  height:24px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:12px;
}

/* Layout grid */
.mh-hosting .grid{
  display:grid !important;
  gap:18px;
}
@media(min-width:960px){
  .mh-hosting .grid.cols-2{
    grid-template-columns:1.35fr .65fr;
    align-items:flex-start;
  }
}

/* Cards */
.mh-hosting .card{
  background:var(--panel);
  border-radius:var(--radius);
  border:var(--outline);
  padding:25px 25px 30px;
  box-shadow:var(--shadow-card);
  position:relative;
  overflow:hidden;
}
.mh-hosting .card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top left,rgba(37,99,235,.04),transparent 55%);
  pointer-events:none;
}
.mh-hosting .card h3{
  margin:.2rem 0 1rem;
  font-size:17px;
  letter-spacing:-0.01em;
}
.mh-hosting .card > *:last-child{
  margin-bottom:0;
}

/* Row – za chipove, ne Bootstrap grid */
.mh-hosting .row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.mh-hosting .row > [class*="col-"]{
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Chipovi */
.mh-hosting .chip{
  display:inline-flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  background:#ffffff;
  border:1px solid rgba(148,163,184,.45);
  padding:9px 13px;
  border-radius:999px;
  cursor:pointer;
  user-select:none;
  font-size:13px;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}
.mh-hosting .chip:hover{
  border-color:rgba(37,99,235,.5);
  box-shadow:0 4px 10px rgba(15,23,42,.08);
  transform:translateY(-1px);
}
.mh-hosting .chip[data-selected="true"]{
  background:var(--accent-soft);
  border-color:rgba(37,99,235,.8);
  box-shadow:0 0 0 1px rgba(37,99,235,.4),0 8px 18px rgba(15,23,42,.08);
}
.mh-hosting .chip[disabled]{
  opacity:.6;
  pointer-events:none;
}

/* Buttons */
.mh-hosting .btn,
.mh-hosting button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:20px 30px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.6);
  background:#ffffff;
  color:var(--text);
  cursor:pointer;
  width:auto !important;
  font-size:17px;
  font-weight:500;
  line-height:1.2;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}
.mh-hosting .btn:hover,
.mh-hosting button:hover{
  box-shadow:0 9px 20px rgba(15,23,42,.12);
  transform:translateY(-1px);
}
.mh-hosting .btn:active,
.mh-hosting button:active{
  transform:translateY(0);
  box-shadow:0 4px 10px rgba(15,23,42,.1);
}
.mh-hosting .btn.primary{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#1d4ed8;
  color:#fff;
}
.mh-hosting .btn.primary:hover{
  background:linear-gradient(135deg,#1d4ed8,#1e40af);
}
.mh-hosting .btn.green{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border-color:#16a34a;
  color:#fff;
}
.mh-hosting .btn.green:hover{
  background:linear-gradient(135deg,#16a34a,#15803d);
}
.mh-hosting .btn.danger{
  background:#fef2f2;
  border-color:#ef4444;
  color:#b91c1c;
}
.mh-hosting .btn:disabled,
.mh-hosting button:disabled{
  opacity:.6;
  pointer-events:none;
  box-shadow:none;
  transform:none;
}
.mh-hosting .btn + .btn{
  margin-left:6px;
}

/* Inputs & form polja */
.mh-hosting input[type="text"],
.mh-hosting input[type="email"],
.mh-hosting input[type="tel"],
.mh-hosting textarea,
.mh-hosting select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.7);
  background:#fff;
  color:var(--text);
  font-size:14px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.mh-hosting input[type="text"]:focus,
.mh-hosting input[type="email"]:focus,
.mh-hosting input[type="tel"]:focus,
.mh-hosting textarea:focus,
.mh-hosting select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(37,99,235,.25),0 0 0 4px rgba(37,99,235,.12);
  background:#f9fafb;
}
.mh-hosting label{
  display:block;
  margin:.35rem 0 .25rem;
  font-size:13px;
  opacity:.9;
  font-weight:500;
}
.mh-hosting small{
  opacity:.75;
}

/* Tablice rezimea */
.mh-hosting table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:#fff;
}
.mh-hosting th,
.mh-hosting td{
   padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-left: 10px;
  padding-left: 0px;
}
.mh-hosting thead th{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  opacity:.7;
}
.mh-hosting tfoot td{
  font-weight:700;
  border-bottom:none;
  padding-top:12px;
}
.mh-hosting .right{
  text-align:right;
}
.mh-hosting .muted{
  opacity:.75;
}

/* Utility klase */
.mh-hosting .mt-1{margin-top:.5rem}
.mh-hosting .mt-2{margin-top:1rem}
.mh-hosting .mt-3{margin-top:1.5rem}
.mh-hosting .space-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.mh-hosting .mini{
  font-size:14px;
}
.mh-hosting .strike{
  text-decoration:line-through;
  opacity:.6;
}

/* Promo / info */
.mh-hosting .promo{
  display:flex;
  align-items:center;
  gap:10px;
  margin:-4px 0 14px;
  padding:9px 11px;
  background:#e0f2fe;
  border:1px solid #93c5fd;
  border-radius:999px;
  color:#0c4a6e;
  font-weight:600;
  font-size:13px;
}
.mh-hosting .promo .badge{
  background:#0ea5e9;
}
.mh-hosting .note{
  padding:10px 12px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:12px;
  font-size:13px;
}
.mh-hosting .success{
  padding:14px 16px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  border-radius:14px;
  font-size:14px;
}

/* Info box s tehnologijama – desno u prvom koraku (desktop) */
.mh-hosting #step-1 > .card:first-child .tech-box{
  position:absolute;
  top:110px;
  right:22px;

  width:260px;
  max-width:260px;
  padding:12px 14px;
  border-radius:12px;

  /* plava paleta, kao promo box */
  background:#e0f2fe;
  border:1px solid #93c5fd;
  color:#0c4a6e;

  font-size:13px;
  line-height:1.5;
  z-index:2;
}

.mh-hosting #step-1 > .card:first-child .tech-box strong{
  display:block;
  margin-bottom:4px;
}

/* Već ispod 1400px – box ide ispod resursa */
@media (max-width:1400px){
  .mh-hosting #step-1 > .card:first-child .tech-box{
    position:static;
    width:auto;
    max-width:100%;
    margin-top:12px;
  }
}



/* Inline validation */
.error-text{
  color:var(--danger);
  font-size:12px;
  margin-top:4px;
}
input.invalid,
select.invalid,
textarea.invalid{
  border-color:var(--danger) !important;
  box-shadow:0 0 0 1px rgba(220,38,38,.4),0 0 0 4px rgba(220,38,38,.14);
}

/* Required field marker */
.req::after{
  content:" *";
  color:var(--danger);
  font-weight:700;
}

/* Hide durations 1, 3, and 6 months in UI, keep in code */
#res-duration [data-duration="1"],
#res-duration [data-duration="3"],
#res-duration [data-duration="6"]{
  display:none !important;
}

/* Domain input sizing */
#domain-name{
  flex:1 1 360px;
  min-width:200px;
}
#tld{
  flex:0 0 140px;
  max-width:180px;
}
@media (max-width:640px){
  #domain-name{
    flex:1 1 220px;
  }
  #tld{
    flex:0 0 120px;
  }
}

/* ==== Moj Hosting scope – izolacija od Bootstrapa ==== */

/* Naš .row je fleks red za chipove, ne Bootstrap grid */
.mh-hosting .row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.mh-hosting .row > [class*="col-"]{
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Gumbi – dodatno osiguranje */
.mh-hosting .btn{
  display:inline-flex !important;
  width:auto !important;
}

/* Kritično: sakrij sekcije s klasom .hidden unutar konfiguratora bez obzira na Bootstrap override */
.mh-hosting .hidden{
  display:none !important;
}
/* Dodatna zaštita: sakrij elemente s aria-hidden="true" unutar scope-a */
.mh-hosting [aria-hidden="true"]{
  display:none !important;
}

/* Layout: lijeve labele uz chipove u resurs redovima */
.mh-hosting .row[id^="res-"]{
  align-items:center;
}
.mh-hosting .row[id^="res-"] > span{
  flex:0 0 180px;
  display:inline-flex;
  align-items:center;
  font-weight:500;
  font-size:13px;
  color:#0f172a;
}
@media (max-width:640px){
  .mh-hosting .row[id^="res-"] > span{
    flex:0 0 120px;
  }
}

/* Domain sizing unutar scope-a (override) */
.mh-hosting #domain-name{
  flex:1 1 360px;
  min-width:240px;
}
.mh-hosting #tld{
  flex:0 0 140px;
  max-width:180px;
}
@media (max-width:640px){
  .mh-hosting #domain-name{
    flex:1 1 220px;
    min-width:160px;
  }
  .mh-hosting #tld{
    flex:0 0 120px;
  }
}

/* === Sažetak cijena / popusta === */

/* Wrapper oko cijelog ispisa cijene */
.mh-hosting .price-summary {
  margin-top: 12px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px dashed rgba(148,163,184,.7);
}

/* Svaki red (mjesečna cijena, trajanje, popust, ukupno...) */
.mh-hosting .price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}

/* Label (Mjesečna cijena, Popust na trajanje…) */
.mh-hosting .price-line .price-label {
  opacity: .8;
}

/* Iznos (3,57 EUR, -3,43 EUR…) */
.mh-hosting .price-line .price-amount {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;          /* da EUR uvijek ostane uz broj */
}

/* Redovi s popustima – malo ih „posivi“ i poravnaj lijevo */
.mh-hosting .price-line--discount .price-label {
  color: #b91c1c;
}
.mh-hosting .price-line--discount .price-amount {
  color: #b91c1c;
}

/* Ukupno – zadnji red, naglasi ga */
.mh-hosting .price-line--total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148,163,184,.6);
}
.mh-hosting .price-line--total .price-label {
  font-weight: 700;
  opacity: .95;
}
.mh-hosting .price-line--total .price-amount {
  font-weight: 800;
  font-size: 18px;
  color: #059669;
}

/* Stara cijena – ako je prikazuješ precrtanu ispred ukupno */
.mh-hosting .price-old {
  font-size: 13px;
  opacity: .6;
  text-decoration: line-through;
  margin-right: 6px;
}

/* Ako trenutno imaš HTML tipa: <strong>3,57 EUR</strong>Mjesečna cijena */
.mh-hosting .price-line strong {
  display: inline-block;
  margin-right: 6px;   /* ovo rješava baš problem "3,57 EURMjesečna cijena" */
}
/* === Navigacijski gumbi (Natrag / Dalje) === */

/* Wrapper oko gumba za navigaciju kroz korake */
.mh-hosting .nav-buttons {
  margin-top: 18px;             /* razmak od forme iznad */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                    /* razmak između gumba */
}

/* Next/prev – minimalno šire i centrirani tekst */
.mh-hosting .nav-buttons .btn,
.mh-hosting .nav-buttons button {
  min-width: 160px;
  justify-content: center;
}

/* Primarni gumb (Dalje / Pošalji) */
.mh-hosting .nav-buttons .btn-primary,
.mh-hosting .nav-buttons .btn-next {
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color: #1d4ed8;
  color: #fff;
}

/* Sekundarni gumb (Natrag) */
.mh-hosting .nav-buttons .btn-secondary,
.mh-hosting .nav-buttons .btn-prev {
  background: #f9fafb;
  border-color: rgba(148,163,184,.9);
  color: #0f172a;
}
.mh-hosting .nav-buttons .btn-secondary:hover,
.mh-hosting .nav-buttons .btn-prev:hover {
  background: #e5e7eb;
}

/* Kompaktni sažetak hostinga u koraku 1 */
.mh-hosting #step-1 .card:nth-child(2) table{
  font-size:13px;
}

.mh-hosting #step-1 .card:nth-child(2) th,
.mh-hosting #step-1 .card:nth-child(2) td{
  padding:4px 6px;          /* bilo je 10px, sad dosta manje */
}

/* malo sabij labelu, da se brojke poravnaju i sve stane u manje linija */
.mh-hosting #step-1 .card:nth-child(2) td:first-child{
  white-space:nowrap;
}

/* Footer gumbi ispod obje kartice u koracima 1–5 */
.mh-hosting #step-1 .footer-actions,
.mh-hosting #step-2 .footer-actions,
.mh-hosting #step-3 .footer-actions,
.mh-hosting #step-4 .footer-actions,
.mh-hosting #step-5 .footer-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;

  /* u grid layoutu neka budu ispod obje kolone */
  grid-column:1 / -1;
}

/* Labela resursa + ikona */
.mh-hosting .row[id^="res-"] > span{
  flex:0 0 180px;
  display:inline-flex;
  align-items:center;
}

/* Sama ikona */
.mh-hosting .res-label-icon{
  width:37px;
  height:37px;
  margin-right:10px;
  flex:0 0 37px;
}

/* Tekst resursa uz ikonu */
.mh-hosting .res-label-text{
  display:inline-block;
}

#hosting-total {
  font-size: 1.3rem;
}


/* Exchange mailboxi – tri stupca Standard / Pro / Extreme */
.mh-hosting .exchange-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.mh-hosting .exchange-col{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mh-hosting .exchange-col label{
  font-size:12px;
  opacity:.8;
}

.mh-hosting .exchange-col input[type="number"]{
  width:90px; /* da bude isto kao i sada */
}

#packages .chip[data-selected="true"] {
  background: #ffd7d5;
  border-color: rgb(238, 90, 82);
  box-shadow: 0 0 0 1px rgba(236, 89, 81, 0.55),0 8px 18px rgba(248, 92, 84, 0.43);
}

.odabirdomene .chip[data-selected="true"] {
  background: #ffd7d5;
  border-color: rgb(238, 90, 82);
  box-shadow: 0 0 0 1px rgba(236, 89, 81, 0.55),0 8px 18px rgba(248, 92, 84, 0.43);
}

.mh-hosting #step-1 > .card:first-child .tech-box {
  margin-top: 25px !important;
}
