.order-content {

  padding: 0 0 30px;
  max-width: 900px;
  margin: 0 auto;
}

.board-hero--order {
  margin: 0 0 30px;
}

.order-form {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 20px;
  color: var(--primary-color, #144B8A);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-color, #e94560);
  border-radius: 2px;
}

.radio-group-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.radio-group-4 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  gap: 15px;
  margin-bottom: 20px;
}

.radio-group-4 > .radio-card:nth-child(1),
.radio-group-4 > .radio-card:nth-child(2) {
  grid-column: span 3;
}

.radio-group-4 > .radio-card:nth-child(3),
.radio-group-4 > .radio-card:nth-child(4),
.radio-group-4 > .radio-card:nth-child(5) {
  grid-column: span 2;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.radio-card input {
  opacity: 0;
  position: absolute;
}

.radio-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 20px 10px;
  border: 2px solid #eee;
  border-radius: 10px;
  height: 100%;
  box-sizing: border-box;
  transition: all var(--transition-default, 0.3s ease);
  font-weight: 600;
  color: #555;
}

.radio-title i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ccc;
  transition: 0.3s;
}

.radio-card input:checked + .radio-title {
  border-color: var(--primary-color, #144B8A);
  background: #f0f7ff;
  color: var(--primary-color, #144B8A);
}

.radio-card input:checked + .radio-title i {
  color: var(--primary-color, #144B8A);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.product-card {
  cursor: pointer;
}

.product-card input {
  opacity: 0;
  position: absolute;
}

.product-card span {
  display: block;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: var(--radius-md, 8px);
  text-align: center;
  font-size: 14px;
  transition: all 0.2s;
}

.product-card input:checked + span {
  background: var(--primary-color, #144B8A);
  color: #fff;
  border-color: var(--primary-color, #144B8A);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(20, 75, 138, 0.2);
}

.radio-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.radio-card-sm {
  position: relative;
  cursor: pointer;
}

.radio-card-sm input {
  opacity: 0;
  position: absolute;
}

.radio-card-sm span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: var(--radius-md, 8px);
  transition: all var(--transition-default, 0.3s ease);
  font-weight: 500;
  color: #555;
}

.radio-card-sm input:checked + span {
  border-color: var(--primary-color, #144B8A);
  background: #f0f7ff;
  color: var(--primary-color, #144B8A);
}

.radio-group-3 .radio-card-sm {
  display: flex;
}

.radio-group-3 .radio-card-sm > span {
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.radio-group-3 .radio-card-sm small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #64748b;
}

.radio-group-3 .radio-card-sm input:checked + span small {
  color: var(--primary-color, #144B8A);
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  margin-top: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

:where(#fullOrderForm) select,
:where(#fullOrderForm) input[type="text"],
:where(#fullOrderForm) input[type="number"],
:where(#fullOrderForm) input[type="tel"],
:where(#fullOrderForm) input[type="email"],
:where(#fullOrderForm) textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  transition: 0.3s;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--primary-color, #144B8A);
  outline: none;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-2-col-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.grid-3-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.grid-2-col > *,
.grid-2-col-small > *,
.grid-3-col > * {
  min-width: 0;
}

.radio-inline {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-inline label {
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}

.dependent-options {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
  animation: slideDown 0.3s ease;
}

.hidden {
  display: none;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  color: #888;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.form-error {
  color: #e94560;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.form-error[hidden] {
  display: none;
}

.input-error {
  border-color: #e94560 !important;
}

.custom-input {
  margin-top: 10px;
  border-color: var(--accent-color, #e94560) !important;
  background: #fff5f7;
}

.stackup-row .custom-input {
  border-color: #ccc !important;
  background: #fff;
}

.stackup-row .custom-input.input-error {
  border-color: var(--accent-color, #e94560) !important;
  background: #fff5f7;
}

.highlight-group {
  background: #fcfcfc;
  padding: 20px;
  border-radius: var(--radius-md, 8px);
  border-left: 4px solid var(--accent-color, #e94560);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-upload-group {
  background: #f9f9f9;
  padding: 20px;
  border-radius: var(--radius-md, 8px);
  border: 1px dashed #ccc;
}

.file-desc {
  font-size: 13px;
  color: var(--text-muted, #666);
  margin-bottom: 15px;
  line-height: 1.4;
}

.file-desc i {
  color: var(--primary-color, #144B8A);
  margin-right: 5px;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  flex-wrap: wrap;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.upload-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color, #144B8A);
  color: #fff;
  border-radius: var(--radius-sm, 6px);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-default, 0.3s ease);
  white-space: nowrap;
}

.upload-btn:hover {
  background-color: var(--primary-hover, #0f3b6e);
}

.file-name {
  font-size: 14px;
  color: #333;
  word-break: break-all;
}

.btn-submit-order {
  z-index: 10;
  position: relative;
  width: 100%;
  padding: 18px;
  background: var(--accent-color, #e94560);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-submit-order:hover {
  background: var(--accent-hover, #d6344d);
}

.btn-download-blank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #217346;
  color: #fff;
  border-radius: var(--radius-sm, 6px);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-default, 0.3s ease);
  box-shadow: 0 4px 10px rgba(33, 115, 70, 0.2);
}

.btn-download-blank:hover {
  background-color: #1a5c37;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(33, 115, 70, 0.3);
}

.btn-download-blank i {
  font-size: 18px;
}

.tz-download-section {
  border-left: 4px solid #217346;
  margin-top: 30px;
}

.tz-action-box {
  margin: 15px 0 20px 0;
}

.forms-download-section {
  border-left: 4px solid #217346;
}

.forms-download-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.forms-download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f2f7fc;
  border: 1px solid #d7e3ef;
  border-radius: var(--radius-sm, 6px);
  color: var(--primary-color, #144B8A);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-default, 0.3s ease);
}

.forms-download-link:hover {
  background: #e6f0fa;
  border-color: var(--primary-color, #144B8A);
  transform: translateY(-1px);
}

.forms-download-link i {
  color: #217346;
  font-size: 16px;
}

@media (max-width: 640px) {
  .forms-download-list {
    grid-template-columns: 1fr;
  }
}

.phone-wrapper {
  display: flex;
  gap: 10px;
}

.phone-wrapper select {
  width: 90px;
  padding: 12px 5px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
}

.phone-wrapper input {
  flex-grow: 1;
  min-width: 0;
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  border-left: none;
}

.phone-wrapper .custom-select {
  flex: 0 0 auto;
  width: 90px;
  align-self: stretch;
}

.phone-wrapper .custom-select .cs-btn {
  min-height: 0;
  height: 100%;
  padding: 12px 10px;
}

.phone-wrapper input {
  border-left: 1px solid #ddd;
  border-radius: var(--radius-md, 8px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeInOrder 0.3s ease;
}

.modal-success {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUpOrder 0.4s ease;
}

.modal-icon {
  font-size: 50px;
  color: #28a745;
  margin-bottom: 20px;
}

.modal-success h2 {
  color: var(--dark-color, #1a1a2e);
  margin-bottom: 10px;
  font-size: 24px;
}

.modal-success p {
  color: var(--text-muted, #666);
  margin-bottom: 20px;
  line-height: 1.5;
}

.order-number-box {
  background: #f0f7ff;
  border: 2px dashed var(--primary-color, #144B8A);
  padding: 15px;
  border-radius: var(--radius-md, 8px);
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color, #144B8A);
}

.btn-modal-close {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color, #144B8A);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
  transition: background var(--transition-default, 0.3s ease);
  border: none;
  cursor: pointer;
}

.btn-modal-close:hover {
  background: var(--primary-hover, #0f3b6e);
}

@keyframes fadeInOrder {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUpOrder {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.item-card {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 20px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf1f8;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  border-radius: calc(var(--radius-md, 8px) - 1px) calc(var(--radius-md, 8px) - 1px) 0 0;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color, #144B8A);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-collapse,
.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-collapse:hover {
  background: var(--primary-color, #144B8A);
  border-color: var(--primary-color, #144B8A);
  color: #fff;
}

.btn-remove:hover {
  background: var(--accent-color, #e94560);
  border-color: var(--accent-color, #e94560);
  color: #fff;
}

.item-card.collapsed .btn-collapse i {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.btn-collapse i {
  transition: transform 0.2s ease;
}

.item-card.collapsed .item-card-body {
  display: none;
}

.item-card-body {
  padding: 20px;
  background: #fff;
}

.item-card-body .form-section {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.item-card-body .form-section h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.item-card-body .form-section h3::before {
  height: 14px;
  width: 3px;
}

.item-card-body .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.item-card-body .product-card span {
  padding: 10px 8px;
  font-size: 13px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fafafa;
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  background: #f0f7ff;
  border-color: var(--primary-color, #144B8A);
}

.checkbox-item input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.btn-add-item {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: 2px dashed var(--primary-color, #144B8A);
  border-radius: 10px;
  background: transparent;
  color: var(--primary-color, #144B8A);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background: #eaf1f8;
}

.stackup-mode-group {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 15px;
}

.stackup-mode-group .radio-card-sm {
  display: flex;
}

.stackup-mode-group .radio-card-sm > span {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  padding: 14px 16px;
  border: 0;
  box-shadow: inset 0 0 0 2px #eee;
  background: #fff;
  font-weight: 400;
  min-width: 0;
}

.stackup-mode-group .radio-card-sm > span strong {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.stackup-mode-group .radio-card-sm > span strong i {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 15px;
  color: var(--primary-color, #144B8A);
}

.stackup-mode-group .radio-card-sm > span small {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #64748b;
}

.stackup-mode-group .radio-card-sm input:checked + span {
  background: #f0f7ff;
  box-shadow: inset 0 0 0 2px var(--primary-color, #144B8A);
}

.stackup-mode-group .radio-card-sm input:checked + span small {
  color: var(--primary-color, #144B8A);
}

.stackup-preset {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 8px);
  padding: 16px;
}

.stackup-preset.hidden {
  display: none;
}

.stackup-preset .input-group {
  margin-bottom: 8px;
}

.stackup-preset .custom-select {
  width: 100%;
}

.stackup-preset .cs-btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: var(--radius-sm, 6px);
}

.stackup-preset .cs-list {
  font-size: 14px;
}

.stackup-preset .stackup-preset-hint {
  margin: 0;
}

.stackup-builder {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 8px);
  padding: 16px;
}

.stackup-outer-layer {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 6px);
  border: 1px dashed #cbd5e1;
}

.stackup-outer-layer .stackup-layer-label {
  min-width: 170px;
  font-size: 14px;
  color: var(--primary-color, #144B8A);
}

.stackup-outer-layer select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  font-size: 14px;
}

.stackup-header-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 70px auto;
  gap: 8px;
  padding: 6px 8px 2px 8px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  align-items: center;
}

.stackup-rows-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.stackup-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 70px auto;
  gap: 8px;
  align-items: center;
  background: #f8f9fa;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.stackup-row > * {
  min-width: 0;
}

.stackup-row select,
.stackup-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  box-sizing: border-box;
}

.stackup-row input:disabled {
  background: #eee;
  border-color: #ddd;
  cursor: not-allowed;
  color: #aaa;
}

.stackup-row input[readonly] {
  background: #f8f9fa;
  color: #334155;
}

.stackup-row .custom-select-wrapper {
  position: relative;
  width: 100%;
}

.btn-stackup-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-stackup-remove:hover {
  background: var(--accent-color, #e94560);
  border-color: var(--accent-color, #e94560);
  color: #fff;
}

.stackup-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.btn-stackup-move {
  width: 24px;
  height: 32px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-stackup-move:hover {
  opacity: 1;
  color: var(--primary-color, #144B8A);
}

.btn-stackup-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  background: transparent;
  border: 2px dashed var(--primary-color, #144B8A);
  color: var(--primary-color, #144B8A);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stackup-add:hover {
  background: #eaf1f8;
}

@media (max-width: 900px) {
  .item-card-body .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .item-card-body .products-grid {
    grid-template-columns: 1fr;
  }
  .item-card-body .grid-2-col,
  .item-card-body .grid-2-col-small,
  .item-card-body .grid-3-col,
  .item-card-body .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .stackup-header-row {
    display: none;
  }
  .stackup-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
  .stackup-outer-layer {
    flex-direction: column;
    align-items: flex-start;
  }
  .stackup-outer-layer .stackup-layer-label {
    min-width: 0;
  }
  .stackup-outer-layer select {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .radio-group-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .radio-group-4 > .radio-card:nth-child(1),
  .radio-group-4 > .radio-card:nth-child(2),
  .radio-group-4 > .radio-card:nth-child(5) {
    grid-column: span 2;
  }

  .radio-group-4 > .radio-card:nth-child(3),
  .radio-group-4 > .radio-card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .radio-group-3,
  .radio-group-2,
  .stackup-mode-group {
    grid-template-columns: 1fr;
  }
  .grid-2-col,
  .grid-2-col-small,
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .radio-group-4 {
    grid-template-columns: 1fr;
  }

  .radio-group-4 > .radio-card:nth-child(n) {
    grid-column: span 1;
  }
}

.input-group.captcha-group {
  transform: none;
}

@media (max-width: 480px) {
  .upload-btn {
    white-space: normal;
  }

  .captcha-group .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
  }

  .custom-file-upload {
    row-gap: 0;
  }

  .custom-file-upload .file-name {
    display: block;
    width: 100%;
    margin-top: 8px;
  }
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.custom-select {
  position: relative;
  width: 100%;
}

div.custom-select > select {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  pointer-events: none;
}

.cs-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-md, 8px);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  color: #333;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-btn:hover {
  border-color: #bbb;
}

.cs-btn:focus,
.custom-select.cs-open .cs-btn {
  outline: none;
  border-color: var(--primary-color, #144B8A);
  box-shadow: 0 0 0 3px rgba(20, 75, 138, 0.12);
}

.cs-value {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--accent-color, #e94560);
}

.stackup-thickness-wrapper .clamp-hint {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  white-space: nowrap;
  z-index: 3;
}

.cs-chevron {
  flex: 0 0 auto;
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.custom-select.cs-open .cs-chevron {
  transform: rotate(180deg);
  color: var(--primary-color, #144B8A);
}

.custom-select.cs-disabled .cs-btn,
.cs-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #ddd;
  box-shadow: none;
}

.cs-list {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px rgba(20, 75, 138, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.custom-select.cs-open .cs-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.cs-option {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: normal;
}

.cs-option.cs-active {
  background: #eaf1f8;
  color: var(--primary-color, #144B8A);
}

.cs-option.cs-selected {
  background: var(--primary-color, #144B8A);
  color: #fff;
  font-weight: 600;
}

.cs-option.cs-selected.cs-active {
  background: #1b5ba6;
}

.cs-option.cs-option-disabled {
  color: #b0b7c3;
  cursor: default;
  background: transparent;
}

.cs-option-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: #94a3b8;
}

.stackup-row .cs-btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm, 6px);
}

.stackup-row .cs-list {
  font-size: 13px;
}

.stackup-outer-layer .cs-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: var(--radius-sm, 6px);
}

.stackup-outer-layer .custom-select {
  flex: 1;
  min-width: 0;
}

.custom-select > .custom-input {
  margin-top: 10px;
}

.stackup-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0f7ff;
  border: 1px dashed var(--primary-color, #144B8A);
  border-radius: var(--radius-md, 8px);
  font-size: 14px;
  color: var(--primary-color, #144B8A);
}

.stackup-total.hidden {
  display: none;
}

.stackup-total i {
  font-size: 15px;
}

.stackup-total .stackup-total-text {
  font-weight: 600;
}
