.gsr-wrap {
  direction: rtl;
  max-width: 1120px;
  margin: 0 auto;
  color: #25221f;
  font-family: inherit;
}

.gsr-wrap .gsr-activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
  align-items: stretch;
}

.gsr-wrap .gsr-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 34, 31, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: #f7f3ee;
  box-shadow: 0 10px 28px rgba(37, 34, 31, 0.08);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.gsr-wrap .gsr-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: #5c6f54;
}

.gsr-wrap.gsr-has-form .gsr-activities {
  display: none;
}

.gsr-wrap .gsr-card-annual_class {
  background: #f5efe5;
}

.gsr-wrap .gsr-card-annual_class::before {
  background: #9a6b43;
}

.gsr-wrap .gsr-card-monthly_class {
  background: #e7f0ec;
}

.gsr-wrap .gsr-card-monthly_class::before {
  background: #4f7b68;
}

.gsr-wrap .gsr-card-workshop {
  background: #efe9f5;
}

.gsr-wrap .gsr-card-workshop::before {
  background: #7b5aa6;
}

.gsr-wrap .gsr-card-retreat {
  background: #e9eef6;
}

.gsr-wrap .gsr-card-retreat::before {
  background: #55759c;
}

.gsr-wrap .gsr-card h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.gsr-wrap .gsr-card-time {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 34, 31, 0.08);
  font-weight: 700;
  margin-bottom: 10px;
}

.gsr-wrap .gsr-card-title {
  margin: 0 0 14px;
  color: #5e564e;
}

.gsr-wrap .gsr-card-description,
.gsr-wrap .gsr-activity-description {
  color: #5e564e;
  line-height: 1.65;
  font-size: 15px;
}

.gsr-wrap .gsr-card-description {
  margin: 10px 0 0;
}

.gsr-wrap .gsr-card-description p,
.gsr-wrap .gsr-activity-description p {
  margin: 0 0 8px;
}

.gsr-wrap .gsr-activity-description {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #eee6dc;
  border-radius: 8px;
  background: #fffdf9;
}

.gsr-wrap .gsr-capacity {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  padding: 9px 10px;
  margin-top: auto;
}

.gsr-wrap .gsr-button,
.gsr-wrap .gsr-submit,
.gsr-wrap .gsr-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  background: #5c6f54;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.gsr-wrap .gsr-button {
  width: 100%;
  margin-top: 14px;
}

.gsr-wrap .gsr-button:hover,
.gsr-wrap .gsr-submit:hover {
  background: #485a41;
  color: #fff;
}

.gsr-wrap .gsr-secondary {
  background: #eee8df;
  color: #25221f;
}

.gsr-wrap .gsr-secondary:hover {
  background: #ded4c8;
}

.gsr-wrap .gsr-form {
  border: 1px solid #e6ded6;
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  margin: 28px 0;
  box-shadow: 0 12px 32px rgba(37, 34, 31, 0.08);
}

.gsr-wrap .gsr-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.gsr-wrap .gsr-step {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1d8ce;
  border-radius: 8px;
  padding: 10px;
  background: #faf8f5;
}

.gsr-wrap .gsr-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d9cec3;
  font-weight: 800;
}

.gsr-wrap .gsr-step-active {
  border-color: #5c6f54;
  background: #eef4eb;
}

.gsr-wrap .gsr-step-active span {
  background: #5c6f54;
  color: #fff;
}

.gsr-wrap .gsr-step-complete span {
  background: #9a6b43;
  color: #fff;
}

.gsr-wrap .gsr-step-panel {
  display: none;
  border: 1px solid #eee6dc;
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  background: #fffdfb;
}

.gsr-wrap .gsr-step-panel-active {
  display: block;
}

.gsr-wrap .gsr-form:not(.gsr-step-3) .gsr-payment-summary {
  display: none;
}

.gsr-wrap .gsr-step-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 18px;
}

.gsr-wrap .gsr-payment-rules {
  display: grid;
  gap: 10px;
  border: 1px solid #e6ded6;
  border-radius: 8px;
  padding: 16px;
  background: #f7f3ee;
}

.gsr-wrap .gsr-payment-rules p {
  margin: 0;
}

.gsr-wrap .gsr-public-head {
  border-bottom: 1px solid #e5ddd2;
  margin-bottom: 18px;
  padding-bottom: 18px;
  text-align: right;
}

.gsr-wrap .gsr-public-head p {
  margin: 0 0 5px;
  color: #5c6f54;
  font-weight: 800;
}

.gsr-wrap .gsr-public-head h2 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.15;
}

.gsr-wrap .gsr-public-head span {
  color: #6f6860;
}

.gsr-wrap .gsr-listing-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.gsr-wrap .gsr-category-nav {
  display: grid;
  gap: 10px;
}

.gsr-wrap .gsr-category-tab {
  display: block;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  color: #25221f;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 34, 31, 0.05);
}

.gsr-wrap .gsr-category-tab strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.gsr-wrap .gsr-category-tab span {
  color: #6f6860;
  font-size: 13px;
}

.gsr-wrap .gsr-category-tab-active {
  border-color: #5c6f54;
  background: #eef4eb;
}

.gsr-wrap .gsr-day-band {
  overflow: hidden;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 34, 31, 0.1);
}

.gsr-wrap .gsr-day-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ddd2;
  background: #fffdf9;
}

.gsr-wrap .gsr-day-head strong {
  font-size: 20px;
}

.gsr-wrap .gsr-day-band .gsr-activities {
  margin: 0;
  gap: 1px;
  background: #e5ddd2;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gsr-wrap .gsr-day-band .gsr-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 235px;
}

.gsr-wrap .gsr-muted {
  color: #6f6860;
  font-weight: 500;
}

.gsr-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.gsr-form h2 {
  margin-top: 0;
}

.gsr-summary,
.gsr-payment-summary {
  background: #f7f3ee;
  border-radius: 8px;
  padding: 12px 14px;
}

.gsr-hidden {
  display: none !important;
}

.gsr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gsr-form label,
.gsr-form legend {
  font-weight: 700;
}

.gsr-form input[type="text"],
.gsr-form input[type="email"],
.gsr-form input[type="tel"],
.gsr-form input[type="date"],
.gsr-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d7cec4;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  box-sizing: border-box;
}

.gsr-full {
  display: block;
  margin: 14px 0;
}

.gsr-checkbox {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  background: #fffdf9;
  line-height: 1.55;
}

.gsr-checkbox input[type="checkbox"] {
  grid-column: 2;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  justify-self: end;
  align-self: start;
}

.gsr-checkbox-text {
  grid-column: 1;
  direction: rtl;
  display: block;
  text-align: right;
}

.gsr-form fieldset {
  border: 1px solid #e6ded6;
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}

.gsr-radio-row {
  display: flex;
  gap: 22px;
  margin: 10px 0;
}

.gsr-health-questions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gsr-health-question {
  border-top: 1px solid #eee6dc;
  padding-top: 12px;
}

.gsr-health-question span {
  display: block;
  font-weight: 700;
}

.gsr-message {
  border-radius: 8px;
  margin: 16px 0;
  padding: 14px 16px;
  font-weight: 700;
}

.gsr-message-success {
  background: #e9f6ec;
  color: #1d5a2c;
}

.gsr-message-error {
  background: #fdecec;
  color: #8a1f1f;
}

.gsr-message-info {
  background: #eef3fb;
  color: #21476f;
}

.gsr-attendance-filter {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 16px 0;
}

.gsr-attendance-form {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

.gsr-attendance-table {
  width: 100%;
  table-layout: auto;
}

.gsr-attendance-table th,
.gsr-attendance-table td {
  vertical-align: middle;
}

.gsr-attendance-table select,
.gsr-attendance-table input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .gsr-wrap .gsr-listing-layout,
  .gsr-wrap .gsr-day-head {
    grid-template-columns: 1fr;
  }

  .gsr-grid {
    grid-template-columns: 1fr;
  }

  .gsr-form {
    padding: 16px;
  }

  .gsr-steps {
    grid-template-columns: 1fr;
  }

  .gsr-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  .gsr-public-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gsr-public-head h2 {
    font-size: 32px;
    line-height: 1.15;
  }

  .gsr-attendance-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .gsr-attendance-filter label,
  .gsr-attendance-filter select,
  .gsr-attendance-filter input,
  .gsr-attendance-filter .button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gsr-attendance-table,
  .gsr-attendance-table thead,
  .gsr-attendance-table tbody,
  .gsr-attendance-table th,
  .gsr-attendance-table td,
  .gsr-attendance-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .gsr-attendance-table thead {
    display: none;
  }

  .gsr-attendance-table {
    border: 0;
    background: transparent;
  }

  .gsr-attendance-table tbody tr {
    margin: 0 0 14px;
    border: 1px solid #e5ddd2;
    border-radius: 8px;
    background: #fffdf9;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(37, 34, 31, 0.07);
  }

  .gsr-attendance-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #eee6dc;
    padding: 10px 12px;
    text-align: right;
    word-break: break-word;
  }

  .gsr-attendance-table td:last-child {
    border-bottom: 0;
  }

  .gsr-attendance-table td::before {
    content: attr(data-label);
    color: #6f6860;
    font-weight: 900;
  }

  .gsr-attendance-table select,
  .gsr-attendance-table input[type="text"] {
    min-width: 0;
  }

  .gsr-attendance-form .submit,
  .gsr-attendance-form .button,
  .gsr-attendance-form .button-primary {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}
