/* v0.1.58 Frontend UI: Material-inspired quiet, elegant, 100% width layout. */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100;
  font-display: block;
  src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
}

:root {
  --tcarm-front-primary: #0f4c63;
  --tcarm-front-primary-hover: #0b3e51;
  --tcarm-front-surface: #ffffff;
  --tcarm-front-surface-soft: #f7f9fa;
  --tcarm-front-border: #dfe7ea;
  --tcarm-front-border-strong: #c8d4d9;
  --tcarm-front-text: #1f2933;
  --tcarm-front-muted: #667085;
  --tcarm-front-success: #2f6f4e;
  --tcarm-front-success-bg: #eef8f1;
  --tcarm-front-warning: #8a5a00;
  --tcarm-front-warning-bg: #fff8e5;
  --tcarm-front-error: #b42318;
  --tcarm-front-error-bg: #fff1f0;
  --tcarm-front-info: #0f4c63;
  --tcarm-front-info-bg: #eef7fa;
  --tcarm-front-radius: 14px;
  --tcarm-front-radius-sm: 8px;
  --tcarm-front-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* 100% shortcode layout. Elementor/theme controls outer width, background, and frame. */
.tcarm-front,
.tcarm-frontend,
.tcarm-front form,
.tcarm-front .tcarm-form,
.tcarm-front .tcarm-front-form,
.tcarm-front .tcarm-front-card,
.tcarm-front .tcarm-application-form-page,
.tcarm-front .tcarm-application-confirm-page,
.tcarm-front .tcarm-application-edit-page,
.tcarm-front .tcarm-status-lookup,
.tcarm-front .tcarm-edit-form,
.tcarm-front .tcarm-confirm-form,
.tcarm-front .tcarm-frontend-result,
.tcarm-front .tcarm-message,
.tcarm-front .tcarm-front-notice,
.tcarm-front .tcarm-front-section,
.tcarm-front .tcarm-form-section,
.tcarm-front .tcarm-confirm-section,
.tcarm-front .tcarm-consent-wrapper,
.tcarm-front .tcarm-application-card,
.tcarm-front .tcarm-status-box,
.tcarm-front .tcarm-front-status-box,
.tcarm-front .tcarm-front-summary,
.tcarm-front .tcarm-confirm-grid,
.tcarm-front .tcarm-front-table,
.tcarm-front .tcarm-confirm-table,
.tcarm-front .tcarm-application-table,
.tcarm-front .tcarm-download-files,
.tcarm-front .tcarm-download-file-list,
.tcarm-front .tcarm-download-file-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.tcarm-front,
.tcarm-frontend {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--tcarm-front-text);
  font-size: 16px;
  line-height: 1.75;
}

.tcarm-front *,
.tcarm-front *::before,
.tcarm-front *::after,
.tcarm-frontend *,
.tcarm-frontend *::before,
.tcarm-frontend *::after {
  box-sizing: border-box !important;
}

.tcarm-front a {
  color: var(--tcarm-front-primary);
  text-underline-offset: .18em;
}

.tcarm-front a:hover {
  color: var(--tcarm-front-primary-hover);
}

/* Page heading */
.tcarm-front .tcarm-front-header,
.tcarm-front .tcarm-front-heading {
  margin: 0 0 1.5em !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-title,
.tcarm-front .tcarm-front-heading h1 {
  margin: 0 0 .45em !important;
  padding: 0 !important;
  font-size: clamp(1.45rem, 1.1rem + .9vw, 1.9rem);
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tcarm-front-text);
}

.tcarm-front .tcarm-front-description,
.tcarm-front .tcarm-front-heading p {
  margin: 0 !important;
  color: var(--tcarm-front-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.tcarm-front p,
.tcarm-front li,
.tcarm-front td,
.tcarm-front .tcarm-confirm-value,
.tcarm-front .tcarm-front-summary-value {
  font-size: .96em;
  font-weight: 400;
  line-height: 1.82;
}

/* Frontend cards / sections */
.tcarm-front .tcarm-front-card,
.tcarm-front .tcarm-form,
.tcarm-front .tcarm-front-form,
.tcarm-front .tcarm-status-search-form,
.tcarm-front .tcarm-edit-form,
.tcarm-front .tcarm-confirm-form,
.tcarm-front .tcarm-front-section,
.tcarm-front .tcarm-form-section,
.tcarm-front .tcarm-confirm-section,
.tcarm-front .tcarm-consent-wrapper,
.tcarm-front .tcarm-application-card,
.tcarm-front .tcarm-message,
.tcarm-front .tcarm-front-notice,
.tcarm-front .tcarm-download-files {
  margin: 0 0 1.5rem !important;
  padding: 1.65rem !important;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius) !important;
  background: var(--tcarm-front-surface) !important;
  box-shadow: var(--tcarm-front-shadow) !important;
}

.tcarm-front .tcarm-form,
.tcarm-front .tcarm-edit-form,
.tcarm-front .tcarm-confirm-form,
.tcarm-front .tcarm-status-search-form {
  display: block;
}

.tcarm-front .tcarm-front-section-title,
.tcarm-front .tcarm-form-section h2,
.tcarm-front .tcarm-consent-wrapper > h2,
.tcarm-front .tcarm-confirm-section h2,
.tcarm-front .tcarm-application-card h2,
.tcarm-front .tcarm-message h2,
.tcarm-front .tcarm-front-notice h2 {
  margin: 0 0 .85rem !important;
  padding: 0 !important;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: .015em;
  color: var(--tcarm-front-text);
  border: 0 !important;
}

.tcarm-front .tcarm-front-section-description,
.tcarm-front .tcarm-form-section-description,
.tcarm-front .tcarm-download-files-description {
  margin: -.35rem 0 1rem !important;
  color: var(--tcarm-front-muted);
  font-size: .93em;
  line-height: 1.75;
}

.tcarm-front .tcarm-front-subtitle,
.tcarm-front .tcarm-application-card h3,
.tcarm-front .tcarm-download-file-title {
  margin: 1.2rem 0 .65rem !important;
  padding: 0 !important;
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 650;
  color: var(--tcarm-front-text);
  border: 0 !important;
}

.tcarm-front .tcarm-front-section-body,
.tcarm-front .tcarm-section-fields,
.tcarm-front .tcarm-status-search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.tcarm-front .tcarm-section-fields {
  gap: 1.5rem;
}

/* Steps */
.tcarm-front .tcarm-front-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  width: 100%;
  margin: 0 0 1.4rem !important;
  padding: 0 !important;
}

.tcarm-front .tcarm-front-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .72rem;
  min-height: 88px;
  padding: 1rem .95rem;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: 16px;
  background: var(--tcarm-front-surface);
  color: var(--tcarm-front-muted);
  box-shadow: var(--tcarm-front-shadow);
  font-size: .9em;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

.tcarm-front .tcarm-front-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -.86rem;
  z-index: 1;
  width: .58rem;
  height: .58rem;
  border-top: 2px solid var(--tcarm-front-border-strong);
  border-right: 2px solid var(--tcarm-front-border-strong);
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
  pointer-events: none;
}

.tcarm-front .tcarm-front-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--tcarm-front-surface-soft);
  color: var(--tcarm-front-primary);
}

.tcarm-front .tcarm-front-step-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', sans-serif;
  font-size: 22px;
  font-weight: 100;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
}

.tcarm-front .tcarm-front-step-body {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.tcarm-front .tcarm-front-step-number {
  display: block;
  color: inherit;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .72;
}

.tcarm-front .tcarm-front-step-label {
  display: block;
  color: inherit;
}

.tcarm-front .tcarm-front-step.is-active {
  border-color: var(--tcarm-front-primary) !important;
  background: var(--tcarm-front-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 76, 99, .16);
}

.tcarm-front .tcarm-front-step.is-active .tcarm-front-step-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* Fields */
.tcarm-front .tcarm-front-field,
.tcarm-front .tcarm-field,
.tcarm-front .tcarm-form-field {
  margin: 0 !important;
  width: 100% !important;
}

.tcarm-front .tcarm-front-label,
.tcarm-front .tcarm-field label,
.tcarm-front .tcarm-form-label {
  display: block;
  margin: 0 0 .42rem !important;
  font-size: .96em;
  font-weight: 650;
  line-height: 1.55;
  color: var(--tcarm-front-text);
}

.tcarm-front .tcarm-front-input,
.tcarm-front .tcarm-front-select,
.tcarm-front .tcarm-front-textarea,
.tcarm-front .tcarm-form-control,
.tcarm-front .tcarm-field input[type=text],
.tcarm-front .tcarm-field input[type=email],
.tcarm-front .tcarm-field input[type=url],
.tcarm-front .tcarm-field input[type=tel],
.tcarm-front .tcarm-field input[type=file],
.tcarm-front .tcarm-field select,
.tcarm-front .tcarm-field textarea,
.tcarm-front .tcarm-status-lookup input[type=text],
.tcarm-front .tcarm-status-lookup input[type=email] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  border: 1px solid var(--tcarm-front-border-strong) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: #fff !important;
  color: var(--tcarm-front-text) !important;
  padding: .76rem .9rem !important;
  font-size: 1em !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-input:focus,
.tcarm-front .tcarm-front-select:focus,
.tcarm-front .tcarm-front-textarea:focus,
.tcarm-front .tcarm-form-control:focus,
.tcarm-front .tcarm-field input:focus,
.tcarm-front .tcarm-field select:focus,
.tcarm-front .tcarm-field textarea:focus {
  border-color: var(--tcarm-front-primary) !important;
  outline: 3px solid rgba(15, 76, 99, .14) !important;
  outline-offset: 1px;
}

.tcarm-front .tcarm-front-textarea,
.tcarm-front .tcarm-field textarea {
  min-height: 150px;
  resize: vertical;
}

.tcarm-front .tcarm-field input::placeholder,
.tcarm-front .tcarm-field textarea::placeholder,
.tcarm-front .tcarm-front-input::placeholder,
.tcarm-front .tcarm-front-textarea::placeholder {
  color: var(--tcarm-front-muted);
  opacity: .75;
}

.tcarm-front .tcarm-required,
.tcarm-front .tcarm-front-required,
.tcarm-front .tcarm-required-mark {
  display: inline-block;
  margin-left: .45em;
  padding: .08em .55em;
  border-radius: 999px;
  border: 1px solid rgba(180, 35, 24, .18);
  background: var(--tcarm-front-error-bg);
  color: var(--tcarm-front-error);
  font-size: .72em;
  font-weight: 650;
  line-height: 1.55;
  vertical-align: middle;
}

.tcarm-front .tcarm-field.has-error input,
.tcarm-front .tcarm-field.has-error textarea,
.tcarm-front .tcarm-field.has-error select,
.tcarm-front .tcarm-front-field.has-error input,
.tcarm-front .tcarm-front-field.has-error textarea,
.tcarm-front .tcarm-front-field.has-error select {
  border-color: var(--tcarm-front-error) !important;
}

.tcarm-front .tcarm-field-error,
.tcarm-front .tcarm-front-error {
  margin-top: .45rem;
  color: var(--tcarm-front-error);
  font-size: .86em;
  font-weight: 500;
  line-height: 1.65;
}

.tcarm-front .tcarm-front-help,
.tcarm-front .tcarm-file-help,
.tcarm-front .tcarm-field-help {
  margin: .55rem 0 0 !important;
  color: var(--tcarm-front-muted);
  font-size: .88em;
  font-weight: 400;
  line-height: 1.7;
}

.tcarm-front .tcarm-section-fields > .tcarm-front-field {
  min-width: 0;
}

.tcarm-front .tcarm-section-fields > .tcarm-front-field .tcarm-field-help {
  margin-top: .35rem !important;
}

.tcarm-front .tcarm-section-fields > .tcarm-front-field .tcarm-field-help + .tcarm-field-help {
  margin-top: .25rem !important;
}

.tcarm-front .tcarm-section-fields > .tcarm-front-field .tcarm-field-error {
  margin-top: .35rem;
}

.tcarm-front .tcarm-section-fields > .tcarm-front-field .tcarm-field-help + .tcarm-field-error {
  margin-top: .3rem;
}

.tcarm-front .tcarm-checkbox-field,
.tcarm-front .tcarm-choice-group {
  display: inline-flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .95em;
  font-weight: 400;
  line-height: 1.7;
}

.tcarm-front .tcarm-section-fields .tcarm-checkbox-group-field,
.tcarm-front .tcarm-section-fields .tcarm-radio-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
  width: 100%;
  min-width: 0;
}

.tcarm-front .tcarm-section-fields .tcarm-checkbox-group-choice,
.tcarm-front .tcarm-section-fields .tcarm-radio-choice {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  min-width: 0;
  margin: 0 !important;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.tcarm-front .tcarm-section-fields .tcarm-checkbox-group-choice > input,
.tcarm-front .tcarm-section-fields .tcarm-radio-choice > input {
  flex: 0 0 auto;
  margin: .38em 0 0 !important;
}

.tcarm-front input[type=checkbox],
.tcarm-front input[type=radio] {
  accent-color: var(--tcarm-front-primary);
}

/* Agreements */
.tcarm-front .tcarm-front-agreements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.tcarm-front .tcarm-front-agreement,
.tcarm-front .tcarm-consent-item {
  margin: 0 !important;
  padding: 1.15rem !important;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: var(--tcarm-front-surface-soft) !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-agreement-title,
.tcarm-front .tcarm-consent-item h3 {
  margin: 0 0 .75rem !important;
  padding: 0 !important;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 650;
  text-align: left;
  color: var(--tcarm-front-text);
}

.tcarm-front .tcarm-front-agreement-text,
.tcarm-front .tcarm-consent-scroll {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: #fff !important;
  color: var(--tcarm-front-text) !important;
  padding: 1rem !important;
  white-space: normal;
  font-size: .94em;
  font-weight: 400;
  line-height: 1.8;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-agreement-link,
.tcarm-front .tcarm-consent-link {
  margin: .75rem 0 0 !important;
  font-size: .95em;
  font-weight: 400;
  line-height: 1.8;
}

.tcarm-front .tcarm-front-agreement-link a,
.tcarm-front .tcarm-consent-link a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
}

.tcarm-front .tcarm-front-agreement-checkbox,
.tcarm-front .tcarm-terms {
  margin: .9rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-agreement-checkbox label,
.tcarm-front .tcarm-terms label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0;
  font-size: .95em;
  font-weight: 500;
  line-height: 1.75;
}

.tcarm-front .tcarm-front-agreement-checkbox input[type=checkbox],
.tcarm-front .tcarm-terms input[type=checkbox] {
  margin-top: .38em;
}

/* Notices/messages */
.tcarm-front .tcarm-message,
.tcarm-front .tcarm-front-notice,
.tcarm-front .tcarm-alert {
  border-left-width: 4px !important;
}

.tcarm-front .tcarm-message p,
.tcarm-front .tcarm-front-notice p,
.tcarm-front .tcarm-message ul,
.tcarm-front .tcarm-front-notice ul {
  margin-top: 0;
}

.tcarm-front .tcarm-front-notice--success,
.tcarm-front .tcarm-alert-success,
.tcarm-front .tcarm-success {
  border-color: rgba(47, 111, 78, .45) !important;
  background: var(--tcarm-front-success-bg) !important;
  color: var(--tcarm-front-success) !important;
}


.tcarm-front.tcarm-complete-message .tcarm-front-notice--success,
.tcarm-front.tcarm-complete-message .tcarm-alert-success,
.tcarm-front.tcarm-complete-message .tcarm-success {
  border-color: rgba(15, 76, 99, .18) !important;
  border-left-width: 1px !important;
  background: var(--tcarm-front-surface) !important;
  color: var(--tcarm-front-text) !important;
  box-shadow: 0 10px 28px rgba(15, 46, 58, .06) !important;
}

.tcarm-front.tcarm-complete-message .tcarm-front-notice--success h2,
.tcarm-front.tcarm-complete-message .tcarm-front-notice--success strong,
.tcarm-front.tcarm-complete-message .tcarm-alert-success h2,
.tcarm-front.tcarm-complete-message .tcarm-alert-success strong,
.tcarm-front.tcarm-complete-message .tcarm-success h2,
.tcarm-front.tcarm-complete-message .tcarm-success strong {
  color: var(--tcarm-front-primary) !important;
}

/* Complete page layout: align with the main application form card. */
.tcarm-front.tcarm-complete-message .tcarm-complete-form {
  margin: 0 !important;
}

.tcarm-front.tcarm-complete-message .tcarm-complete-section {
  margin: 0 !important;
  border-left-width: 1px !important;
  border-left-color: var(--tcarm-front-border) !important;
  background: var(--tcarm-front-surface) !important;
  color: var(--tcarm-front-text) !important;
  box-shadow: var(--tcarm-front-shadow) !important;
}

.tcarm-front.tcarm-complete-message .tcarm-complete-section h2,
.tcarm-front.tcarm-complete-message .tcarm-complete-section strong {
  color: var(--tcarm-front-text) !important;
}

.tcarm-front.tcarm-complete-message .tcarm-complete-section .tcarm-application-number {
  color: var(--tcarm-front-primary) !important;
}

.tcarm-front.tcarm-complete-message .tcarm-complete-section > p:last-of-type {
  margin-bottom: 0 !important;
}

.tcarm-front .tcarm-front-notice--warning,
.tcarm-front .tcarm-alert-warning,
.tcarm-front .tcarm-warning {
  border-color: rgba(138, 90, 0, .45) !important;
  background: var(--tcarm-front-warning-bg) !important;
  color: var(--tcarm-front-warning) !important;
}

.tcarm-front .tcarm-front-notice--error,
.tcarm-front .tcarm-alert-error,
.tcarm-front .tcarm-error {
  border-color: rgba(180, 35, 24, .45) !important;
  background: var(--tcarm-front-error-bg) !important;
  color: var(--tcarm-front-error) !important;
}

.tcarm-front .tcarm-front-notice--info,
.tcarm-front .tcarm-alert-info,
.tcarm-front .tcarm-info {
  border-color: rgba(15, 76, 99, .36) !important;
  background: var(--tcarm-front-info-bg) !important;
  color: var(--tcarm-front-info) !important;
}

/* Summary/tables */
.tcarm-front .tcarm-confirm-grid,
.tcarm-front .tcarm-front-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.tcarm-front .tcarm-confirm-row,
.tcarm-front .tcarm-front-summary-row {
  display: grid;
  grid-template-columns: minmax(160px, 24%) minmax(0, 1fr);
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--tcarm-front-border);
}

.tcarm-front .tcarm-confirm-row:last-child,
.tcarm-front .tcarm-front-summary-row:last-child {
  border-bottom: 0;
}

.tcarm-front .tcarm-confirm-label,
.tcarm-front .tcarm-front-summary-label {
  font-size: .92em;
  font-weight: 650;
  line-height: 1.7;
  color: var(--tcarm-front-muted);
}

.tcarm-front .tcarm-confirm-value,
.tcarm-front .tcarm-front-summary-value {
  color: var(--tcarm-front-text);
  word-break: break-word;
}

.tcarm-front .tcarm-confirm-table,
.tcarm-front .tcarm-application-table,
.tcarm-front .tcarm-front-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  background: transparent !important;
  color: var(--tcarm-front-text) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-confirm-table th,
.tcarm-front .tcarm-confirm-table td,
.tcarm-front .tcarm-application-table th,
.tcarm-front .tcarm-application-table td,
.tcarm-front .tcarm-front-table th,
.tcarm-front .tcarm-front-table td {
  padding: .82rem .75rem;
  border: 0 !important;
  border-bottom: 1px solid var(--tcarm-front-border) !important;
  text-align: left;
  vertical-align: top;
  background: transparent !important;
  color: var(--tcarm-front-text) !important;
}

.tcarm-front .tcarm-confirm-table th,
.tcarm-front .tcarm-application-table th,
.tcarm-front .tcarm-front-table th {
  width: 210px;
  font-weight: 650;
  color: var(--tcarm-front-muted) !important;
}

/* Status */
.tcarm-front .tcarm-status-box,
.tcarm-front .tcarm-front-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem !important;
  padding: 1rem !important;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: var(--tcarm-front-surface-soft) !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-status-box span {
  color: var(--tcarm-front-muted);
  font-size: .9em;
  font-weight: 600;
}

/* Rejection reason card shared by status and edit pages. */
.tcarm-front .tcarm-status-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.tcarm-front .tcarm-status-box--rejected-with-reason {
  display: block !important;
}

.tcarm-front .tcarm-status-box__reason,
.tcarm-front .tcarm-reject-reason-card {
  margin: .95rem 0 0 !important;
  padding: .95rem 1rem !important;
  border: 1px solid rgba(180, 35, 24, .22) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: var(--tcarm-front-error-bg) !important;
  color: #8f1d16 !important;
  box-shadow: none !important;
  line-height: 1.75;
}

.tcarm-front .tcarm-edit-reason-card {
  margin: 1.1rem 0 1.25rem !important;
}

.tcarm-front .tcarm-status-box__reason strong,
.tcarm-front .tcarm-reject-reason-card strong {
  display: block;
  margin: 0 0 .35rem;
  color: var(--tcarm-front-error) !important;
  font-weight: 700;
}

.tcarm-front .tcarm-status-box__reason div,
.tcarm-front .tcarm-reject-reason-card div {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tcarm-front .tcarm-status-badge,
.tcarm-front .tcarm-front-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .22rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 99, .22);
  background: var(--tcarm-front-info-bg);
  color: var(--tcarm-front-primary);
  font-size: .9em;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.tcarm-front .tcarm-status-badge-approved,
.tcarm-front .tcarm-front-status-approved {
  border-color: rgba(47, 111, 78, .24);
  background: var(--tcarm-front-success-bg);
  color: var(--tcarm-front-success);
}

.tcarm-front .tcarm-status-badge-rejected,
.tcarm-front .tcarm-front-status-rejected {
  border-color: rgba(180, 35, 24, .24);
  background: var(--tcarm-front-error-bg);
  color: var(--tcarm-front-error);
}

.tcarm-front .tcarm-status-badge-need-confirmation,
.tcarm-front .tcarm-front-status-needs-confirmation {
  border-color: rgba(138, 90, 0, .24);
  background: var(--tcarm-front-warning-bg);
  color: var(--tcarm-front-warning);
}

.tcarm-front .tcarm-status-badge-pending,
.tcarm-front .tcarm-front-status-pending {
  border-color: rgba(15, 76, 99, .22);
  background: var(--tcarm-front-info-bg);
  color: var(--tcarm-front-primary);
}

/* Buttons */
.tcarm-front .tcarm-actions,
.tcarm-front .tcarm-front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  width: 100%;
  margin-top: 1.4rem !important;
}

.tcarm-front .tcarm-button,
.tcarm-front .tcarm-button-secondary,
.tcarm-front .tcarm-front-button,
.tcarm-front button.tcarm-front-button,
.tcarm-front input[type=submit].tcarm-front-button,
.tcarm-front a.tcarm-front-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.25rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--tcarm-front-primary) !important;
  text-decoration: none !important;
  font-size: .96em !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  cursor: pointer;
  user-select: none;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .12s ease, box-shadow .16s ease;
}

.tcarm-front .tcarm-front-button--primary,
.tcarm-front .tcarm-button:not(.tcarm-button-secondary) {
  background: var(--tcarm-front-primary) !important;
  border-color: var(--tcarm-front-primary) !important;
  color: #fff !important;
}

.tcarm-front .tcarm-front-button--secondary,
.tcarm-front .tcarm-button-secondary,
.tcarm-front .tcarm-front-button--outline {
  background: #fff !important;
  border-color: var(--tcarm-front-border-strong) !important;
  color: var(--tcarm-front-primary) !important;
}

.tcarm-front .tcarm-front-button:hover,
.tcarm-front .tcarm-button:hover,
.tcarm-front .tcarm-button-secondary:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(15, 76, 99, .12) !important;
}

.tcarm-front .tcarm-front-button--primary:hover,
.tcarm-front .tcarm-button:not(.tcarm-button-secondary):hover {
  background: var(--tcarm-front-primary-hover) !important;
  border-color: var(--tcarm-front-primary-hover) !important;
  color: #fff !important;
}

.tcarm-front .tcarm-front-button--secondary:hover,
.tcarm-front .tcarm-button-secondary:hover {
  background: var(--tcarm-front-info-bg) !important;
  color: var(--tcarm-front-primary-hover) !important;
}

.tcarm-front .tcarm-front-button:focus-visible,
.tcarm-front .tcarm-button:focus-visible,
.tcarm-front .tcarm-button-secondary:focus-visible {
  outline: 3px solid rgba(15, 76, 99, .18);
  outline-offset: 3px;
}

.tcarm-front .tcarm-front-button:disabled,
.tcarm-front .tcarm-button:disabled,
.tcarm-front .tcarm-button-secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Files/downloads */
.tcarm-front .tcarm-attachment-list,
.tcarm-front .tcarm-front-file-list,
.tcarm-front .tcarm-download-file-list,
.tcarm-front .tcarm-front-download-list {
  display: grid;
  gap: .8rem;
  width: 100%;
}

.tcarm-front .tcarm-attachment-item,
.tcarm-front .tcarm-front-file-item,
.tcarm-front .tcarm-download-file-item,
.tcarm-front .tcarm-front-download-item {
  display: grid;
  gap: .55rem;
  padding: 1rem !important;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius-sm) !important;
  background: var(--tcarm-front-surface-soft) !important;
}

.tcarm-front .tcarm-attachment-thumb,
.tcarm-front .tcarm-front-file-preview img {
  display: block;
  max-width: min(100%, 320px);
  height: auto;
  border-radius: var(--tcarm-front-radius-sm);
  border: 1px solid var(--tcarm-front-border);
}

.tcarm-front .tcarm-attachment-size,
.tcarm-front .tcarm-front-file-meta,
.tcarm-front .tcarm-download-file-description {
  color: var(--tcarm-front-muted);
  font-size: .88em;
  line-height: 1.7;
}

.tcarm-front .tcarm-download-button,
.tcarm-front .tcarm-front-download-button {
  width: fit-content;
}

.tcarm-front .tcarm-application-number-box {
  margin: .8rem 0 0 !important;
  padding: 1rem !important;
  border: 1px solid var(--tcarm-front-border) !important;
  border-radius: var(--tcarm-front-radius-sm);
  background: var(--tcarm-front-surface-soft);
}

.tcarm-front .tcarm-application-number {
  color: var(--tcarm-front-primary);
  font-weight: 800;
  letter-spacing: .02em;
}

/* Turnstile / honeypot */
.tcarm-front .tcarm-turnstile-wrap {
  margin: 1.2rem 0 0 !important;
}

.tcarm-front .tcarm-hp,
.tcarm-front .tcarm-hp * {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

.tcarm-front .tcarm-form br {
  display: none;
}

@media (max-width: 720px) {
  .tcarm-front,
  .tcarm-frontend {
    font-size: 15px;
  }

  .tcarm-front .tcarm-front-card,
  .tcarm-front .tcarm-form,
  .tcarm-front .tcarm-front-form,
  .tcarm-front .tcarm-front-section,
  .tcarm-front .tcarm-form-section,
  .tcarm-front .tcarm-confirm-section,
  .tcarm-front .tcarm-consent-wrapper,
  .tcarm-front .tcarm-application-card,
  .tcarm-front .tcarm-message,
  .tcarm-front .tcarm-front-notice,
  .tcarm-front .tcarm-download-files {
    padding: 1.15rem !important;
    border-radius: 12px !important;
  }

  .tcarm-front .tcarm-front-steps {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .tcarm-front .tcarm-front-step {
    min-height: 72px;
    padding: .9rem .95rem;
  }

  .tcarm-front .tcarm-front-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -.54rem;
    left: 50%;
    border-top: 0;
    border-left: 0;
    border-right: 2px solid var(--tcarm-front-border-strong);
    border-bottom: 2px solid var(--tcarm-front-border-strong);
    transform: translateX(-50%) rotate(45deg);
  }

  .tcarm-front .tcarm-confirm-row,
  .tcarm-front .tcarm-front-summary-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .tcarm-front .tcarm-confirm-table th,
  .tcarm-front .tcarm-application-table th,
  .tcarm-front .tcarm-front-table th {
    width: auto;
    display: block;
    border-bottom: 0 !important;
    padding-bottom: .25rem;
  }

  .tcarm-front .tcarm-confirm-table td,
  .tcarm-front .tcarm-application-table td,
  .tcarm-front .tcarm-front-table td {
    display: block;
    padding-top: 0;
  }

  .tcarm-front .tcarm-status-box,
  .tcarm-front .tcarm-front-status-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .tcarm-front .tcarm-actions,
  .tcarm-front .tcarm-front-actions {
    display: grid;
  }

  .tcarm-front .tcarm-button,
  .tcarm-front .tcarm-button-secondary,
  .tcarm-front .tcarm-front-button,
  .tcarm-front .tcarm-download-button {
    width: 100%;
  }
}

/* v0.1.58.4 Frontend UI balance / responsive refinements. */
.tcarm-front {
  --tcarm-front-border: #d3dee2;
  --tcarm-front-border-strong: #bdcfd6;
  --tcarm-front-shadow: 0 8px 22px rgba(15, 46, 58, .055);
}

.tcarm-front .tcarm-front-card,
.tcarm-front .tcarm-form,
.tcarm-front .tcarm-front-form,
.tcarm-front .tcarm-status-search-form,
.tcarm-front .tcarm-edit-form,
.tcarm-front .tcarm-confirm-form,
.tcarm-front .tcarm-front-section,
.tcarm-front .tcarm-form-section,
.tcarm-front .tcarm-confirm-section,
.tcarm-front .tcarm-consent-wrapper,
.tcarm-front .tcarm-application-card,
.tcarm-front .tcarm-message,
.tcarm-front .tcarm-front-notice,
.tcarm-front .tcarm-download-files,
.tcarm-front.tcarm-complete-message .tcarm-complete-section {
  border-color: rgba(15, 79, 95, .18) !important;
  box-shadow: 0 8px 22px rgba(15, 46, 58, .055) !important;
}

.tcarm-front .tcarm-status-box,
.tcarm-front .tcarm-front-status-box,
.tcarm-front .tcarm-application-number-box,
.tcarm-front .tcarm-download-file-item,
.tcarm-front .tcarm-attachment-item,
.tcarm-front .tcarm-front-file-item,
.tcarm-front .tcarm-front-download-item {
  border-color: rgba(15, 79, 95, .16) !important;
}

.tcarm-front .tcarm-status-badge,
.tcarm-front .tcarm-front-status-badge {
  border-color: rgba(15, 79, 95, .34) !important;
  background: rgba(15, 79, 95, .10) !important;
  color: var(--tcarm-front-primary) !important;
}

.tcarm-front .tcarm-status-badge-approved,
.tcarm-front .tcarm-front-status-approved {
  border-color: rgba(15, 79, 95, .38) !important;
  background: rgba(15, 79, 95, .11) !important;
  color: var(--tcarm-front-primary) !important;
}

.tcarm-front .tcarm-status-badge-rejected,
.tcarm-front .tcarm-front-status-rejected {
  border-color: rgba(180, 35, 24, .34) !important;
  background: rgba(180, 35, 24, .08) !important;
  color: var(--tcarm-front-error) !important;
}

.tcarm-front .tcarm-status-badge-need-confirmation,
.tcarm-front .tcarm-front-status-needs-confirmation {
  border-color: rgba(138, 90, 0, .34) !important;
  background: rgba(138, 90, 0, .08) !important;
  color: var(--tcarm-front-warning) !important;
}

.tcarm-front .tcarm-front-button,
.tcarm-front .tcarm-button,
.tcarm-front .tcarm-button-secondary,
.tcarm-front button.tcarm-front-button,
.tcarm-front input[type=submit].tcarm-front-button,
.tcarm-front a.tcarm-front-button {
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-button:hover,
.tcarm-front .tcarm-button:hover,
.tcarm-front .tcarm-button-secondary:hover {
  transform: none !important;
  box-shadow: none !important;
}

.tcarm-front .tcarm-front-button--secondary,
.tcarm-front .tcarm-button-secondary,
.tcarm-front .tcarm-front-button--outline {
  border-color: rgba(15, 79, 95, .42) !important;
  color: #15586a !important;
  background: #fff !important;
}

.tcarm-front .tcarm-front-button--secondary:hover,
.tcarm-front .tcarm-button-secondary:hover,
.tcarm-front .tcarm-front-button--outline:hover {
  border-color: rgba(15, 79, 95, .50) !important;
  background: #f7fafb !important;
  color: var(--tcarm-front-primary-hover) !important;
}

.tcarm-front .tcarm-application-number-label {
  display: inline;
  color: var(--tcarm-front-muted);
  font-weight: 650;
}

@media (max-width: 720px) {
  .tcarm-front .tcarm-consent-wrapper,
  .tcarm-front .tcarm-consent-item,
  .tcarm-front .tcarm-consent-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tcarm-front .tcarm-consent-item {
    padding: .9rem !important;
    overflow: hidden !important;
  }

  .tcarm-front .tcarm-consent-scroll {
    padding: .85rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .tcarm-front .tcarm-consent-scroll * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .tcarm-front .tcarm-status-box,
  .tcarm-front .tcarm-front-status-box {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .8rem !important;
  }

  .tcarm-front .tcarm-status-box span,
  .tcarm-front .tcarm-front-status-box span {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tcarm-front .tcarm-status-badge,
  .tcarm-front .tcarm-front-status-badge {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }

  .tcarm-front .tcarm-status-box--rejected-with-reason {
    display: block !important;
  }

  .tcarm-front .tcarm-status-box--rejected-with-reason .tcarm-status-box__row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .8rem !important;
    width: 100%;
  }

  .tcarm-front .tcarm-status-box__reason,
  .tcarm-front .tcarm-reject-reason-card {
    width: 100%;
    max-width: 100%;
  }

  .tcarm-front .tcarm-application-number-box {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tcarm-front .tcarm-application-number-label {
    display: block;
    margin: 0 0 .25rem;
  }

  .tcarm-front .tcarm-application-number {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
