:root {
  --yellow: #fecf33;
  --yellow-dark: #f5b400;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.12);
}

/* Global reset / base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0edff 0, var(--bg) 50%);
  color: var(--text);
}

.page {
  max-width: 1180px; /* πιο “γεμάτη” οθόνη σε desktop */
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* HEADER */

.site-header {
  width: 100%;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  margin-bottom: 20px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-header {
  height: 80px; /* κάν’ το όσο θέλεις π.χ. 80px, 100px, 110px */
  display: flex;
  align-items: center;
  position: relative;
}


.header-inner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* logo στο κέντρο */
  align-items: center;
  padding: 20px 0;
}

/* Λογότυπο μεγαλύτερο */
.header-logo-img {
  height: 150px;   /* κάντο 80px αν θες πιο μακρύ */
  width: auto;
  object-fit: contain;
}

/* === MENU: πάει δεξιά χωρίς να επηρεάζει τίποτα === */
.header-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 20px;
}



.header-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}


.header-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: 0.15s ease;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .nav-link {
    margin-left: 0;
    margin-right: 16px;
  }
}

/* HERO */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 32px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fecf33, #3e63ff);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  min-height: 320px;
}

.hero-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* κέντρο του hero box */
  width: min(520px, 70%);
  max-height: 90%;
  object-fit: contain;

  opacity: 0.32;          /* να φαίνεται καθαρά αλλά να μην “πνίγει” το κείμενο */
  pointer-events: none;
}



.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-bullets li + li {
  margin-top: 4px;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-cta {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.35);
}


.hero-cta:hover {
  filter: brightness(1.05);
}

.hero-cta-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.hero-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .results-table th,
  .results-table td {
    font-size: 13px;
    padding: 6px 4px;
  }
}
@media (max-width: 768px) {
  .results-block {
    overflow-x: hidden;
  }
}
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-bg-image {
    width: 720px;
  }

/* TOP PROVIDER BAR */

.top-provider-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-provider-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap;
  padding: 0 24px;
  min-width: min-content;
}

.top-provider-grid img {
  height: 52px;  /* +λίγο μέγεθος */
  object-fit: contain;
  opacity: 0.9;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.top-provider-grid img:hover {
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .top-provider-grid {
    gap: 14px;
    padding: 0 12px;
  }

  .top-provider-grid img {
    height: 26px;
  }
}

/* STEPPER */

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 18px;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: #fff;
}

.step-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(to right, var(--yellow), var(--blue));
  opacity: 0.25;
}

.step.active .step-circle {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: #111827;
  font-weight: 700;
}

.step.completed .step-circle {
  background: var(--blue);
  border-color: var(--blue-dark);
  color: #fff;
}

@media (max-width: 768px) {
  .stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0;
  }

  .step-line {
    display: none;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* CARDS / STRUCTURE */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* PILL GROUP */

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-option {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  justify-content: center;
  transition: all 0.15s ease;
}

.pill-option-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pill-option span {
  font-weight: 500;
}

.pill-option.active {
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  color: #111827;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.pill-option.active .pill-option-icon {
  background: rgba(255, 255, 255, 0.9);
}

.pill-option-secondary {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.7);
}

/* FORM / RESULTS LAYOUT */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #374151;
  font-weight: 500;
}

.label-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  font-family: inherit;
  background: #f9fafb;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

.provider-select {
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border: 2px solid #1d4ed8;
  font-weight: 600;
  color: #1e3a8a;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* BUTTONS */
.info-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.info-icon-btn:hover {
  background: #f3f4f6;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.summary {
  font-size: 0.85rem;
  color: #374151;
  margin-top: 4px;
  margin-bottom: 8px;
}

.note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

/* RESULTS TABLES */

.results-block {
  margin-top: 10px;
}

.results-title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed; /* σταθερό layout */
}

/* Βασικό styling κελιών */
.results-table th,
.results-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
  text-align: right; /* default: δεξιά για αριθμητικά */
  word-wrap: break-word;
}

/* Στήλη επιλογής (radio) */
.results-table th.col-select,
.results-table td.col-select {
  width: 40px;
  text-align: center;
}

/* Στήλη Πάροχος / Εταιρεία */
.results-table th.col-provider,
.results-table td.col-provider {
  width: 22%;
  text-align: left;
}

/* Στήλη Πρόγραμμα */
.results-table th.col-program,
.results-table td.col-program {
  width: 30%;
  text-align: left;
}

/* Πρόγραμμα: να σπάει σε 2–3 γραμμές χωρίς να ανοίγει το table */
.results-table td.col-program {
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

/* Κόστος / μήνα */
.results-table th.col-cost,
.results-table td.col-cost {
  width: 16%;
}

/* Διαφορά vs τωρινό (μήνας) */
.results-table th.col-diff-month,
.results-table td.col-diff-month {
  width: 16%;
}

/* Διαφορά / έτος */
.results-table th.col-diff-year,
.results-table td.col-diff-year {
  width: 16%;
}

/* Row highlight για φθηνότερο */
.row-best {
  background: #e0f7ff;
}

/* Badges */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-right: 4px;
  margin-top: 3px;
}

.tag-current {
  background: #e5e7eb;
  color: #374151;
}

.tag-best {
  background: #dcfce7;
  color: #166534;
}

/* Saving colors */
.saving-positive {
  color: #16a34a;
  font-weight: 600;
}

.saving-negative {
  color: #b91c1c;
  font-weight: 600;
}

.saving-zero {
  color: var(--muted);
}

/* Responsive προσαρμογές πίνακα */
@media (max-width: 768px) {
  .results-table {
    font-size: 0.78rem;
  }

  .results-table th,
  .results-table td {
    padding: 6px 4px;
  }

  .results-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* FAQ */

.faq-section {
  margin-top: 28px;
}

.faq-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.faq-icon {
  font-weight: 700;
  font-size: 1.1rem;
  color: #4b5563;
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.85rem;
  color: #4b5563;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* FOOTER */

.site-footer {
  margin-top: 40px;
  padding: 22px 0 26px;
  background: radial-gradient(circle at top, rgba(254, 207, 51, 0.16), #0f172a);
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}

.footer-text {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #9ca3af;
}

.footer-name {
  font-size: 0.96rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a855f7, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CHAT BUBBLE */

.chat-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
  z-index: 50;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.6);
}

@media (max-width: 600px) {
  .chat-bubble {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* RESPONSIVE LAYOUT FIXES */

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px 16px;
  }
}
/* POPUP OVERLAY */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* POPUP WINDOW */
.popup-window {
  background: #ffffff;
  padding: 28px;
  width: min(420px, 90%);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: popupFadeIn 0.25s ease-out;
}

/* TITLE */
.popup-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

/* CLOSE BUTTON */
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.popup-close:hover {
  color: #000;
}

/* POPUP ANIMATION */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Contact form – textarea styling */
.contact-section textarea,
.contact-form textarea,
textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.4;
}

/* Στήλη επιλογής (radio) */
.results-table th.select-col,
.results-table td:first-child {
  width: 40px;
  text-align: center;
}

/* Τα ονόματα προγραμμάτων να σπάνε σε 2–3 γραμμές, όχι να ανοίγει ο πίνακας */
.results-table td.program-name {
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}
/* Οι στήλες πάροχος και πρόγραμμα να ευθυγραμμίζονται σωστά */
.results-table td.col-provider,
.results-table th.col-provider,
.results-table td.col-program,
.results-table th.col-program {
  text-align: left !important;
}

/* Πρόγραμμα να σπάει σωστά και να μην ανοίγει το table */
.results-table td.col-program {
  white-space: normal;
  word-break: break-word;
  max-width: 130px;
}
.program-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.program-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

.program-badge span.type {
  font-weight: 600;
  color: #111827;
  margin-right: 6px;
}

.program-badge span.program {
  color: #374151;
}

.program-badge-electricity {
  border-left: 4px solid #2563eb; /* μπλε */
}

.program-badge-gas {
  border-left: 4px solid #d97706; /* πορτοκαλί */
}
