:root {
  --hc-maroon: #8d1b3d;
  --hc-maroon-dark: #6d152f;
  --hc-grey: #6c757d;
  --hc-grey-light: #e9ecef;
  --hc-text: #212529;
  --hc-border: #ced4da;
  --hc-radius: 12px;
  --hc-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.hc-body {
  font-family: var(--hc-font);
  background: #fff;
  color: var(--hc-text);
  min-height: 100vh;
}

.hc-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  position: relative;
}

@media (min-width: 768px) {
  .hc-page {
    max-width: 560px;
    padding: 24px 28px 40px;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
  }

  .hc-body:not(.hc-body--landing) {
    background: #f7f8fa;
  }
}

.hc-help-btn {
  position: absolute;
  left: 0;
  top: 8px;
  background: var(--hc-maroon);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 10px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
}

.hc-header {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 8px;
}

.hc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

.hc-subtitle {
  text-align: center;
  color: var(--hc-grey);
  font-size: 0.85rem;
  font-style: italic;
  margin: 12px 0 24px;
  line-height: 1.6;
}

/* Stepper */
.hc-stepper {
  margin: 24px 0 8px;
}

.hc-stepper-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 56px;
}

.hc-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--hc-grey-light);
  color: var(--hc-grey);
  border: 2px solid var(--hc-grey-light);
}

.hc-step--active .hc-step-circle,
.hc-step--done .hc-step-circle {
  background: var(--hc-maroon);
  color: #fff;
  border-color: var(--hc-maroon);
}

.hc-step-check {
  font-size: 1rem;
}

.hc-step-label {
  font-size: 0.65rem;
  text-align: center;
  margin-top: 6px;
  color: var(--hc-grey);
  max-width: 72px;
  line-height: 1.3;
}

.hc-step--active .hc-step-label,
.hc-step--done .hc-step-label {
  color: var(--hc-maroon);
  font-weight: 600;
}

.hc-step-line {
  flex: 1;
  height: 2px;
  background: var(--hc-grey-light);
  margin-top: 18px;
  min-width: 8px;
}

.hc-step-line--done {
  background: var(--hc-maroon);
}

/* Form */
.hc-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hc-grey-light);
}

.hc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.hc-label .required {
  color: #dc3545;
}

.hc-input,
.hc-select,
.hc-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  font-family: var(--hc-font);
  font-size: 1rem;
  background: #fff;
  direction: rtl;
}

.hc-input:focus,
.hc-select:focus,
.hc-textarea:focus {
  outline: none;
  border-color: var(--hc-maroon);
  box-shadow: 0 0 0 2px rgba(141, 27, 61, 0.15);
}

.hc-input--error {
  border-color: #dc3545;
}

.hc-error {
  color: #dc3545;
  font-size: 0.8rem;
}

.hc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.hc-radio input[type='radio'] {
  accent-color: var(--hc-maroon);
  width: 18px;
  height: 18px;
}

/* Fees */
.hc-fees-box {
  margin-top: 8px;
}

.hc-fee-row {
  margin-bottom: 20px;
}

.hc-fee-label {
  font-size: 0.75rem;
  color: var(--hc-grey);
  margin-bottom: 4px;
}

.hc-fee-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.hc-fee-total {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hc-grey-light);
}

/* Footer buttons */
.hc-footer-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hc-footer-nav > * {
  flex: 1;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--hc-radius);
  font-family: var(--hc-font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 52px;
}

.hc-btn--primary {
  background: var(--hc-maroon);
  color: #fff;
  box-shadow: 0 4px 12px rgba(141, 27, 61, 0.25);
}

.hc-btn--primary:hover {
  background: var(--hc-maroon-dark);
}

.hc-btn--secondary {
  background: #5a6268;
  color: #fff;
}

.hc-btn--secondary:hover {
  background: #495057;
}
