/*
  schedule-styles.css

  This stylesheet defines the look of the responsive pricing section for the
  "Schedule" plans. All classes are prefixed with `schedule-` to avoid
  collisions with existing styles on the page.
*/

/* Colour palette */
:root {
  --schedule-dark: #222222;
  --schedule-light: #ffffff;
  --schedule-primary: #ffe033; /* vibrant yellow used for CTAs */
  --schedule-secondary: #f8faff; /* pale background for cards */
  --schedule-border: #ccd7ff; /* soft blue border */
  --schedule-green: #2da35c;
  --schedule-red: #cf2c2c;
  --schedule-shadow: #000000;
  --schedule-grey: #f3f3f3;
  --schedule-active-tab-bg: #333333;
  --schedule-active-tab-color: #ffffff;
  --schedule-tab-border: #dddddd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.schedule-pricing {
  font-family: Onest;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

/* Hide radio buttons */
.schedule-plan-toggle {
  display: none;
}

/* Tabs container on mobile */
.schedule-tabs {
  display: none;
  margin-bottom: 1.5rem;
  justify-content: center;
  gap: 0.5rem;
}

.schedule-tab {
  padding: 0.6rem 1rem;
  border: 2px solid var(--schedule-tab-border);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: var(--schedule-light);
  color: var(--schedule-dark);
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
}

/* Active tab styling using :checked sibling selector */
#schedule-plan-basic:checked ~ .schedule-tabs label[for="schedule-plan-basic"],
#schedule-plan-growth:checked ~ .schedule-tabs label[for="schedule-plan-growth"],
#schedule-plan-deep:checked ~ .schedule-tabs label[for="schedule-plan-deep"] {
  background-color: var(--schedule-active-tab-bg);
  color: var(--schedule-active-tab-color);
  border-color: var(--schedule-active-tab-bg);
}

/* Plan detail cards (mobile) */
.schedule-plan-details {
  display: none;
}

#schedule-plan-basic:checked ~ .schedule-basic,
#schedule-plan-growth:checked ~ .schedule-growth,
#schedule-plan-deep:checked ~ .schedule-deep {
  display: block;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.schedule-card-header {
  /*background-color: var(--schedule-light);*/
  background-color: #facc1566;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--schedule-shadow);
  /* Create thick shadow on bottom-right to mimic screenshot */
  box-shadow: 8px 8px 0 0 var(--schedule-shadow);
  position: relative;
  overflow: hidden;
}

.schedule-card-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--schedule-dark);
}

.schedule-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--schedule-dark);
}

.schedule-feature-list {
  list-style: none;
  background-color: var(--schedule-secondary);
  border: 2px solid var(--schedule-border);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-feature-list li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--schedule-dark);
}

.schedule-feature-list li::before {
  content: '';
  display: inline-block;
  margin-right: 0.6rem;
  font-size: 1.1rem;
  line-height: 1;
}

/* Available features show a green check mark */
.schedule-feature-list li.available::before {
  content: '✓';
  color: var(--schedule-green);
  font-weight: bold;
}

/* Unavailable features show a red cross */
.schedule-feature-list li.unavailable::before {
  content: '✕';
  color: var(--schedule-red);
  font-weight: bold;
}

/* Sessions (number of meetings) display without an icon but emphasise text weight */
.schedule-feature-list li.sessions::before {
  content: '';
}
.schedule-feature-list li.sessions {
  font-weight: 600;
  color: var(--schedule-dark);
}

.schedule-card-footer {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.schedule-btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--schedule-shadow);
  /* offset shadow similar to screenshot */
  box-shadow: 6px 6px 0 0 var(--schedule-shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.schedule-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--schedule-shadow);
}

/* Primary button: yellow fill */
.schedule-btn-primary {
  
  /*background-color: linear-gradient(266.78deg, #715cbd -21.19%, #CC1965 39.77%, #F7C762 100.74%);*/
  color: var(--schedule-dark);
  /*color: #fff;*/
  /*background-color: var(--schedule-primary);*/
}

/* Secondary button: white fill with dark outline */
.schedule-btn-secondary {
  background-color: var(--schedule-light);
  color: var(--schedule-dark);
}

/* Outline button used in the desktop table */
.schedule-btn-outline {
  background-color: var(--schedule-light);
  color: var(--schedule-dark);
  border-color: var(--schedule-dark);
  box-shadow: none;
  padding: 0.6rem 1.5rem;
}

.schedule-btn-outline:hover {
  background-color: var(--schedule-dark);
  color: var(--schedule-light);
}

/* Desktop pricing table */
.schedule-table-desktop {
  display: none;
  overflow-x: auto;
}

.schedule-pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1.2rem;
  border-spacing: 10px;
  border-collapse: separate;
}

.schedule-pricing-table th,
.schedule-pricing-table td {
  padding: 0.9rem 0.7rem;
  text-align: center;
  vertical-align: middle;
}
.schedule-pricing-table td:first-child{
  text-align: left;
  font-size: 16px;
}



.schedule-pricing-table thead th {
  font-weight: 700;
  /*border-bottom: 2px solid var(--schedule-border);*/
}

.schedule-pricing-table .schedule-feature-col {
  text-align: left;
  font-weight: 600;
}

.schedule-pricing-table tbody tr:not(.schedule-table-footer):nth-child(odd) {
  background-color: var(--schedule-secondary);
}

.schedule-pricing-table tbody tr:not(.schedule-table-footer):nth-child(even) {
  background-color: var(--schedule-light);
}

.schedule-pricing-table td.available {
  background-color: #eaf7e7;
  color: var(--schedule-green);
  font-weight: bold;
  border-radius: 8px;
}

.schedule-pricing-table td.unavailable {
  background-color: #ffefef;
  color: var(--schedule-red);
  font-weight: bold;
  border-radius: 8px;
}

.schedule-pricing-table .schedule-table-price {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
}

.schedule-table-footer td {
  /*border-top: 2px solid var(--schedule-border);*/
  padding-top: 1rem;
}

.schedule-table-footer .seats-left-btn{
  width: auto;
  padding: 10px 25px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}
.schedule-table-footer .seats-left-btn.white-bg{
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.schedule-table-footer .seats-left-btn.white-bg:hover,.schedule-table-footer .seats-left-btn.white-bg:active,.schedule-table-footer .seats-left-btn.white-bg:focus{
    background: linear-gradient(266.78deg, #715cbd -21.19%, #CC1965 39.77%, #F7C762 100.74%) !important;
    color: #fff !important;
    border-color: transparent !important;
    border: none;
}

.schedule-pricing-table tbody{
  font-size: 16px;
}
.schedule-pricing-table tr th.schedule-plan-col{
  width: 200px;
}
.schedule-pricing-table tr th.schedule-plan-col.heightlighter{
  background: #fce7a1;
  border-radius: 12px;
  /*color: #fff;*/
}
.schedule-plan-col.heightlighter{
  position: relative;
}
.schedule-plan-col.heightlighter:before{
  content: 'Bestseller';
  position: absolute;
  z-index: 99;
  text-align: center;
  top: -10px;
  font-size: 16px;
  font-weight: 400;
  background: #ffde6b;
  left: 40px;
  right: 40px;
  width: calc(100% - 80px);
  border-radius: 13px;
}

/* Responsive behaviours */
@media (max-width: 900px) {
  /* Show mobile version */
  .schedule-tabs {
    display: flex;
  }
  .schedule-table-desktop {
    display: none;
  }
}

@media (min-width: 901px) {
  /* Show desktop table and hide mobile plans */
  .schedule-tabs,
  .schedule-plan-details {
    display: none !important;
  }
  .schedule-table-desktop {
    display: block;
  }
}