/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Brand colors */
  --accent-color: #d80c2c;
  --headline-color: var(--accent-color);

  /* Greys */
  --gray-border: #e8e8e8;
  --gray-light: rgba(0, 0, 0, 0.4);
  --gray-mid: rgba(0, 0, 0, 0.7);
  --gray-dark: rgba(0, 0, 0, 0.9);

  /* Radius */
  --radius: 6px;

  /* Backgrounds */
  --canvas-bg: #ffffff;
  /* page behind the card */
  --card-bg: #f1f1f1;
  /* the white form panel */

  /* Divider */
  --divider: rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
     Page & Canvas
     ========================================================================== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--gray-mid);
  background-color: var(--canvas-bg);
  -webkit-font-smoothing: antialiased;
}

.sr-root {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 48px 20px;
  background-color: var(--canvas-bg);
}


/* ==========================================================================
     Card Container
     ========================================================================== */
.sr-main {
  width: 100%;
  max-width: 580px;
}

.container {
  background-color: var(--card-bg);
  border: none;
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
     Headings
     ========================================================================== */
h1 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
  color: #000;
}

h4 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  border-bottom: 1px dashed var(--divider);
}


/* ==========================================================================
     Form Rows & Dividers
     ========================================================================== */
.sr-payment-form .sr-form-row {
  padding: 10px 0;
  /* border-bottom: 1px dashed var(--divider); */
}

.sr-payment-form .sr-form-row:last-of-type {
  border-bottom: none;
}

/* make coupon inputs sit flush */
#coupon-row {
  padding-bottom: 0;
  border-bottom: none;
}


/* ==========================================================================
     Labels & Inputs
     ========================================================================== */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-dark);
}

.sr-input,
.sr-select,
.sr-card-element {
  width: 100%;
  height: 44px;
  padding: 0;
  font-size: 16px;
  color: var(--gray-dark);
  background-color: var(--canvas-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.sr-input::placeholder {
  color: var(--gray-light);
  padding: 0 12px;
}

.sr-input:focus,
.sr-select:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(50, 151, 211, 0.3),
    0 1px 1px rgba(0, 0, 0, 0.07),
    0 0 0 4px rgba(50, 151, 211, 0.3);
}


/* ==========================================================================
     Checkbox
     ========================================================================== */
.sr-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.sr-checkbox-label input {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.hidden {
  display: none !important;
}


/* ==========================================================================
     Buttons
     ========================================================================== */
button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

button:hover {
  filter: contrast(115%);
}

button:active {
  transform: scale(0.98);
}


/* ==========================================================================
     Error Text
     ========================================================================== */
.sr-field-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-color);
}


/* ==========================================================================
     Review Order Text
     ========================================================================== */
#item_name,
#item_price {
  font-size: 16px;
  color: var(--gray-dark);
}

#item_price {
  font-weight: bold;
}


/* ==========================================================================
     Responsive
========================================================================== */
@media (max-width: 720px) {
  .sr-root {
    flex-direction: column;
    padding: 48px 20px;
  }

  .sr-main {
    max-width: none;
  }
}
@media (max-width: 480px) {

  .sr-root {
      flex-direction: column;
      padding: 24px 10px;
    }
    
  .container {
    padding: 20px 8px;
  }
}


/* ==========================================================================
     Coupon
========================================================================== */
/* CSS to make input and button each half width */
.coupon-flex {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: stretch;
}

.coupon-input-wrap {
  display: flex;
  width: 100%;
  gap: 10px;
}

.coupon-half {
  flex: 1 1 60%;
  border-radius: 6px;
}

.coupon-half-btn {
  background: #fff;
  color: #d80c2c;
  border: 2px solid #d80c2c;
  border-radius: 6px;
  font-weight: 700;
  min-width: 105px;
  padding: 0 1rem;
  transition: background 0.2s, color 0.2s;
}

.coupon-half-btn:focus {
  outline: 2px solid #d80c2c;
}

.coupon-applied-message {
  display: flex;
  width: 100%;
  align-items: stretch;
  /* Makes both items the same height */
  gap: 10px;
  margin: 0;
}

.coupon-badge.coupon-half-width,
.coupon-remove-btn.coupon-half-width {
  flex: 1 1 50%;
  height: 44px;
  /* or whatever your button height is */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 6px;
}

.coupon-applied-btn.coupon-half-width {
  background: #27ae60;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
}

.coupon-remove-btn.coupon-half-width {
  background: #fff;
  color: #d80c2c;
  border: 2px solid #d80c2c;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.coupon-remove-btn.coupon-half-width:hover,
.coupon-remove-btn.coupon-half-width:focus {
  background: #d80c2c;
  color: #fff;
  border-color: #b00;
}

/* General badge for legacy cases */
.coupon-badge {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 5px;
  font-size: 14px;
  letter-spacing: 1px;
}


@media (max-width: 480px) {

  .coupon-half,
  .coupon-half-btn {
    font-size: 15px;
    height: 40px;
  }
}


.add_student_btn {
  background: #eee;
    color: #333;
    font-weight: 600;
    margin-top: 4px;
    border: 1px solid #ccc;
}