/* =========================================================
   GSC - Pagina "Cum comand"
   Se încarcă doar pe pagina cu slug-ul: cum-comand
========================================================= */

:root {
  --cc-primary: #0f66d7;
  --cc-primary-dark: #084da8;
  --cc-navy: #07152d;
  --cc-text: #25334a;
  --cc-muted: #667085;
  --cc-border: #dce6f2;
  --cc-soft: #f4f8fd;
  --cc-white: #ffffff;
  --cc-success: #14804a;
  --cc-shadow: 0 16px 45px rgba(15, 51, 91, 0.10);
}

/* Headerul existent din pagina-text.php */
.textpage-header {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 36px));
  max-width: none;
  margin: 38px auto 0;
  padding: 68px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(73, 154, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #06142c 0%, #0b3f85 58%, #0f66d7 100%);
  box-shadow: var(--cc-shadow);
}

.textpage-header::before,
.textpage-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.textpage-header::before {
  width: 260px;
  height: 260px;
  top: -140px;
  left: -80px;
}

.textpage-header::after {
  width: 180px;
  height: 180px;
  right: -65px;
  bottom: -95px;
}

.textpage-header .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.textpage-title {
  margin: 0 0 12px;
  color: var(--cc-white);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.textpage-subtitle {
  max-width: 690px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

/* Conținut */
.textpage-content {
  width: min(1180px, calc(100% - 36px));
  max-width: none;
  margin: 0 auto;
  padding: 54px 0 90px;
}

.textpage-content > .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cum-comand-page {
  color: var(--cc-text);
  font-size: 16px;
  line-height: 1.75;
}

.cum-comand-page *,
.cum-comand-page *::before,
.cum-comand-page *::after {
  box-sizing: border-box;
}

.cum-comand-page h2,
.cum-comand-page h3,
.cum-comand-page p {
  margin-top: 0;
}

.cc-section {
  margin-top: 58px;
}

.cc-section:first-child {
  margin-top: 0;
}

.cc-section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--cc-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cc-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--cc-primary);
}

.cum-comand-page .cc-section-title {
  margin: 0 0 12px;
  color: var(--cc-navy);
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cc-section-lead {
  margin: 0;
  color: var(--cc-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Pașii comenzii */
.cc-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  counter-reset: cc-step;
}

.cc-step {
  position: relative;
  min-height: 255px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: var(--cc-white);
  box-shadow: 0 10px 28px rgba(24, 58, 96, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  counter-increment: cc-step;
}

.cc-step:hover {
  transform: translateY(-4px);
  border-color: #a9caf1;
  box-shadow: 0 18px 38px rgba(24, 58, 96, 0.12);
}

.cc-step::after {
  content: "0" counter(cc-step);
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: rgba(15, 102, 215, 0.07);
  font-size: 104px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.cc-step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #e8f2ff, #d6e9ff);
  color: var(--cc-primary);
  font-size: 22px;
}

.cc-step-number {
  color: var(--cc-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cum-comand-page .cc-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 11px;
  color: var(--cc-navy);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.3;
}

.cum-comand-page .cc-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Plată */
.cc-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cc-payment-card {
  padding: 25px;
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cc-payment-card .cc-icon {
  margin-bottom: 18px;
}

.cum-comand-page .cc-payment-card h3 {
  margin: 0 0 10px;
  color: var(--cc-navy);
  font-size: 20px;
  font-weight: 750;
}

.cum-comand-page .cc-payment-card p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
}

.cc-payment-card strong {
  color: var(--cc-text);
}

/* Beneficii cont */
.cc-account-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
  padding: 36px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 102, 215, 0.96), rgba(7, 21, 45, 0.98));
  color: var(--cc-white);
  box-shadow: var(--cc-shadow);
}

.cc-account-box .cc-eyebrow {
  color: #b9d8ff;
}

.cc-account-box .cc-eyebrow::before {
  background: #b9d8ff;
}

.cum-comand-page .cc-account-box h2 {
  margin: 0;
  color: var(--cc-white);
}

.cc-account-box p {
  color: rgba(255, 255, 255, 0.82);
}

.cc-check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-check-list li {
  position: relative;
  margin: 0;
  padding: 13px 16px 13px 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.cc-check-list li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

/* Întrebări frecvente */
.cc-faq-list {
  display: grid;
  gap: 13px;
}

.cc-faq {
  overflow: hidden;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  background: var(--cc-white);
  box-shadow: 0 8px 22px rgba(24, 58, 96, 0.05);
}

.cc-faq summary {
  position: relative;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  color: var(--cc-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}

.cc-faq summary::-webkit-details-marker {
  display: none;
}

.cc-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cc-soft);
  color: var(--cc-primary);
  font-size: 22px;
  font-weight: 500;
}

.cc-faq[open] summary {
  color: var(--cc-primary);
  background: #f8fbff;
}

.cc-faq[open] summary::after {
  content: "−";
}

.cc-faq-content {
  padding: 0 22px 22px;
  color: var(--cc-muted);
}

.cum-comand-page .cc-faq-content p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
}

.cum-comand-page .cc-faq-content p + p {
  margin-top: 12px;
}

/* Livrare / contact */
.cc-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cc-info-card {
  padding: 28px;
  border-radius: 19px;
  background: var(--cc-soft);
  border: 1px solid #d8e7f8;
}

.cum-comand-page .cc-info-card h3 {
  margin: 0 0 12px;
  color: var(--cc-navy);
  font-size: 21px;
  font-weight: 750;
}

.cum-comand-page .cc-info-card p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
}

.cc-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 58px;
  padding: 34px;
  border: 1px solid var(--cc-border);
  border-radius: 22px;
  background: var(--cc-white);
  box-shadow: var(--cc-shadow);
}

.cc-contact-text {
  max-width: 690px;
}

.cum-comand-page .cc-contact-card h2 {
  margin: 0 0 8px;
  color: var(--cc-navy);
  font-size: 28px;
  font-weight: 800;
}

.cum-comand-page .cc-contact-card p {
  margin: 0;
  color: var(--cc-muted);
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.cum-comand-page .cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--cc-primary);
  border-radius: 12px;
  background: var(--cc-primary);
  color: var(--cc-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cum-comand-page .cc-button:hover {
  transform: translateY(-2px);
  background: var(--cc-primary-dark);
  border-color: var(--cc-primary-dark);
  color: var(--cc-white);
  text-decoration: none;
}

.cum-comand-page .cc-button-secondary {
  background: var(--cc-white);
  color: var(--cc-primary);
}

/* Linkuri */
.cum-comand-page a:not(.cc-button) {
  color: var(--cc-primary);
  font-weight: 650;
  text-decoration: none;
}

.cum-comand-page a:not(.cc-button):hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
  .textpage-header {
    margin: 24px 18px 0;
    padding: 54px 22px;
  }

  .textpage-content {
    padding-top: 42px;
  }

  .cc-payment-grid {
    grid-template-columns: 1fr;
  }

  .cc-account-box {
    grid-template-columns: 1fr;
  }

  .cc-contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .textpage-header {
    border-radius: 18px;
    padding: 44px 18px;
  }

  .textpage-title {
    font-size: 37px;
  }

  .textpage-subtitle {
    font-size: 16px;
  }

  .textpage-content {
    padding: 36px 14px 64px;
  }

  .cc-section {
    margin-top: 44px;
  }

  .cc-steps,
  .cc-delivery-grid {
    grid-template-columns: 1fr;
  }

  .cc-step {
    min-height: 0;
    padding: 23px;
  }

  .cc-account-box,
  .cc-contact-card {
    padding: 25px;
    border-radius: 18px;
  }

  .cc-actions {
    width: 100%;
  }

  .cum-comand-page .cc-button {
    width: 100%;
  }

  .cc-faq summary {
    padding: 18px 52px 18px 18px;
    font-size: 16px;
  }

  .cc-faq-content {
    padding: 0 18px 19px;
  }
}

/* Elemente suplimentare pentru noul template page-cum-comand.php */
.cc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cc-hero-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.cc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.cum-comand-page .cc-hero-actions .cc-button {
  gap: 9px;
}

.cum-comand-page .cc-button-light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--cc-primary);
}

.cum-comand-page .cc-button-light:hover {
  border-color: #edf5ff;
  background: #edf5ff;
  color: var(--cc-primary-dark);
}

.cum-comand-page .cc-button-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.cum-comand-page .cc-button-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.cc-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -26px auto 52px;
  padding: 14px;
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 51, 91, 0.08);
}

.cc-quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--cc-soft);
  color: var(--cc-primary) !important;
  font-size: 14px;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cc-quick-nav a:hover {
  transform: translateY(-1px);
  background: var(--cc-primary);
  color: #ffffff !important;
}

.cc-info-card {
  position: relative;
  overflow: hidden;
}

.cc-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--cc-primary);
  font-size: 21px;
  box-shadow: 0 8px 22px rgba(15, 102, 215, 0.10);
}

.cc-contact-card .cc-button {
  gap: 9px;
  white-space: nowrap;
}

.cc-section,
.cc-contact-card {
  scroll-margin-top: 24px;
}

@media (max-width: 767px) {
  .cc-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cum-comand-page .cc-hero-actions .cc-button {
    width: 100%;
  }

  .cc-quick-nav {
    margin-top: -12px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .cc-quick-nav a {
    flex: 0 0 auto;
  }
}

/* =========================================================
 * Contrast sporit pentru secțiunile cu fundal albastru
 * ========================================================= */

/* Bannerul principal */
.cum-comand-page .textpage-header .cc-hero-kicker,
.cum-comand-page .textpage-header .textpage-title,
.cum-comand-page .textpage-header .textpage-subtitle {
  color: #ffffff !important;
  opacity: 1 !important;
}

.cum-comand-page .textpage-header .textpage-subtitle {
  color: rgba(255, 255, 255, 0.94) !important;
}

/* Secțiunea „Contul tău GSC” */
.cum-comand-page .cc-account-box,
.cum-comand-page .cc-account-box .cc-eyebrow,
.cum-comand-page .cc-account-box .cc-section-title,
.cum-comand-page .cc-account-box h2,
.cum-comand-page .cc-account-box p,
.cum-comand-page .cc-account-box .cc-check-list li {
  color: #ffffff !important;
  opacity: 1 !important;
}

.cum-comand-page .cc-account-box p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.cum-comand-page .cc-account-box .cc-check-list li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.cum-comand-page .cc-account-box .cc-check-list li::before {
  color: #86efac !important;
}

/* =========================================================
 * FORȚARE LĂȚIME CONȚINUT = LĂȚIME BANNER
 * Bootstrap / tema pot limita clasa .container; aceste reguli
 * asigură aceeași lățime pentru tot conținutul paginii.
 * ========================================================= */

.cum-comand-page > .textpage-header,
.cum-comand-page > .textpage-content {
  width: min(1180px, calc(100% - 36px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cum-comand-page > .textpage-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cum-comand-page > .textpage-content > .container,
.cum-comand-page .textpage-content .container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cum-comand-page .cc-section,
.cum-comand-page .cc-quick-nav,
.cum-comand-page .cc-steps,
.cum-comand-page .cc-payment-grid,
.cum-comand-page .cc-account-box,
.cum-comand-page .cc-faq-list,
.cum-comand-page .cc-delivery-grid,
.cum-comand-page .cc-contact-card {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 991px) {
  .cum-comand-page > .textpage-header,
  .cum-comand-page > .textpage-content {
    width: calc(100% - 36px) !important;
  }
}

@media (max-width: 767px) {
  .cum-comand-page > .textpage-header,
  .cum-comand-page > .textpage-content {
    width: calc(100% - 24px) !important;
  }
}
