/**
 * D ONE Demo — overrides / additions only
 *
 * Inheritance:
 * - Base styles come from style_d_one.css + style_d_one_form.css (enqueued first)
 * - This file loads only on template: templates/lp_d_one-demo.php
 *
 * Scope:
 * - Prefer .page-d_one-demo so demo CSS never leaks into the main D ONE page
 *
 * Merge into main later:
 * 1. Move rules from here into style_d_one.css
 * 2. Replace .page-d_one-demo with .page-d_one (or remove the extra class)
 * 3. Remove style_d_one_demo enqueue from functions.php
 */

/* ---------------------------------------------------------------------------
 * Bridge: main CSS uses .page-template-lp-d_one for some header icons.
 * Demo template has a different body class, so re-apply those rules here.
 * --------------------------------------------------------------------------- */
.page-template-lp_d_one-demo .icon-date,
.page-d_one-demo .icon-date {
  display: inline-block;
  width: 30px;
  height: 30px;
  color: #fff;
  background-color: #000;
  place-content: center;
  font-size: 17px;
  border-radius: 50%;
  text-align: center;
}

.page-template-lp_d_one-demo .icon-date.date-blue,
.page-d_one-demo .icon-date.date-blue {
  background-color: #0071bc;
}

.page-template-lp_d_one-demo .icon-date.date-red,
.page-d_one-demo .icon-date.date-red {
  background-color: #ff0000;
}

.footer-d_one.footer-d_one-demo {
  background: #fff;
}
.footer-d_one-demo .wrapper-ft-done .left img {
  max-width: 128px;
}

/* Menu buttons: 1 row, equal width & equal height */
.page-d_one-demo ul.menu-d_one {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.page-d_one-demo ul.menu-d_one li {
  display: flex;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

.page-d_one-demo ul.menu-d_one li + li {
  margin-left: 0 !important;
}

.page-d_one-demo ul.menu-d_one li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.35;
  padding: 10px 5px;
  font-size: 16px;
  word-break: break-word;
}
.page-d_one-demo .menu-center {
  place-content: normal;
}
.page-d_one-demo section .btn-done {
  width: 235px;
  text-align: center;
}
.page-d_one-demo #sec-d_one-1 .left-tit {
  font-size: 42px;
}
.page-d_one-demo .box-time {
  line-height: 1.3;
}
.left-content table caption {
  padding: 0px;
  margin-left: -8px;
}

.left-content table {
  margin-top: 15px;
  margin-bottom: 40px;
  max-width: 300px;
}

.left-content table td {
  padding: 0px;
}

.left-content table td:first-child {
  width: 140px;
}

.left-content table td,
.left-content table caption {
  font-size: 16px;
  font-weight: bold;
}

.left-content table span.icon-date {
  width: 20px;
  height: 20px;
  font-size: 10px;
  vertical-align: middle;
}
.page-d_one-demo .row-done .left-tit{
  margin-left: 0px;
}
.page-d_one-demo .row-done{
  gap: 20px;
}
@media screen and (max-width: 991px) {
  .page-d_one-demo ul.menu-d_one li a {
    font-size: 13px;
    padding: 14px 6px;
    min-height: 90px;
  }
}

@media screen and (max-width: 767px) {

  .page-d_one-demo ul.menu-d_one {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .page-d_one-demo ul.menu-d_one li {
    width: 100%;
    flex: none;
  }

  .page-template-lp_d_one-demo .icon-date.date-blue,
  .page-d_one-demo .icon-date {
    line-height: 30px;
  }
  .page-template-lp_d_one-demo .row-done .left-time .date + .time {
    margin-left: 0px;
  }
  .page-template-lp_d_one-demo .row-done .box-time .fz-24 {
    font-size: 18px;
  }
  .page-d_one-demo .left-tit {
    font-size: 32px !important;
  }
  .page-d_one-demo .row-done .left span.label-date {
    height: 23px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 23px;
  }
  .left-content table td:first-child {
    width: 120px;
  }

  .left-content table td,
  .left-content table caption {
    font-size: 15px;
    width: auto;
  }
  .page-template-lp_d_one-demo .icon-date.date-blue,
  .page-d_one-demo .left-content .icon-date {
    line-height: 20px;
  }
  .page-d_one-demo section .btn-done {
    font-size: 18px;
    padding: 20px 10px;
  }
}
