.mfp-content .calc-price {
  background: var(--surface, #fff);
  border-radius: var(--realdev-radius-xl, 12px);
  font-size: var(--realdev-font-size-md, 14px);
  color: var(--realdev-text, #1f2937);
}

.calc-price>*+* {
  margin-top: var(--realdev-space-lg, 16px);
}

.calc-head {
  display: flex;
  align-items: center;
  gap: var(--realdev-space-md, 12px);
  padding-bottom: var(--realdev-space-md, 12px);
  border-bottom: 1px solid var(--realdev-border, #e5e7eb);
}

.calc-head__media {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: var(--realdev-radius-lg, 8px);
  border: 1px solid var(--realdev-border, #e5e7eb);
  overflow: hidden;
}

.calc-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calc-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

.calc-head__title {
  margin: 0 0 4px;
  font-size: var(--realdev-font-size-md, 14px);
  font-weight: var(--realdev-font-weight-semibold, 600);
  color: var(--realdev-text, #1f2937);
  line-height: 1.35;
}

.calc-head__price {
  margin: 0;
  font-size: var(--realdev-font-size-xl, 18px);
  font-weight: var(--realdev-font-weight-bold, 700);
  color: var(--realdev-error, #ef4444);
  line-height: 1.2;
}

.calc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calc-steps__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  outline: 0;
  color: var(--realdev-text-muted, #6b7280);
}

.calc-steps__item+.calc-steps__item {
  margin-left: 28px;
}

.calc-steps__item+.calc-steps__item::before {
  content: "";
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--realdev-border, #e5e7eb);
  transform: translateY(-50%);
  transition: background var(--realdev-transition, 160ms ease);
}

.calc-steps__item.is-active+.calc-steps__item::before,
.calc-steps__item.is-done+.calc-steps__item::before {
  background: var(--primary, #D4A038);
}

.calc-steps__dot {
  position: relative;
  z-index: 1;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--realdev-border, #e5e7eb);
  color: var(--realdev-text-muted, #6b7280);
  font-weight: var(--realdev-font-weight-semibold, 600);
  font-size: 12px;
  line-height: 1;
  transition: all var(--realdev-transition, 160ms ease);
}

.calc-steps__label {
  font-size: var(--realdev-font-size-sm, 12px);
  font-weight: var(--realdev-font-weight-semibold, 600);
}

.calc-steps__item.is-active .calc-steps__dot {
  background: var(--primary, #D4A038);
  border-color: var(--primary, #D4A038);
  color: var(--realdev-primary-contrast, #fff);
  box-shadow: 0 0 0 4px var(--realdev-primary-soft, #F5E6C8);
}

.calc-steps__item.is-active,
.calc-steps__item.is-done {
  color: var(--realdev-text, #1f2937);
}

.calc-steps__item.is-done .calc-steps__dot {
  background: var(--primary, #D4A038);
  border-color: var(--primary, #D4A038);
  color: transparent;
  font-size: 0;
}

.calc-steps__item.is-done .calc-steps__dot::before {
  content: "✓";
  color: var(--realdev-primary-contrast, #fff);
  font-size: 13px;
  font-weight: 700;
}

.calc-steps__item:focus-visible .calc-steps__dot {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.calc-step {
  width: 100%;
}

.calc-step[hidden] {
  display: none !important;
}

.calc-price .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--realdev-font-size-sm, 12px);
  font-weight: var(--realdev-font-weight-semibold, 600);
  color: var(--realdev-text, #1f2937);
  text-transform: none;
  letter-spacing: 0;
}

.calc-price .form-row .input-text,
.calc-price .form-row .select {
  height: 40px;
  border-radius: var(--realdev-radius-md, 6px);
  border: 1px solid var(--realdev-border, #e5e7eb);
  background: var(--surface, #fff);
  font-size: var(--realdev-font-size-md, 14px);
  transition: border-color var(--realdev-transition, 160ms ease),
    box-shadow var(--realdev-transition, 160ms ease);
}

.calc-price .form-row .input-text:focus {
  border-color: var(--primary, #D4A038);
  box-shadow: 0 0 0 3px var(--realdev-primary-soft, #F5E6C8);
  outline: none;
}

.calc-price .message-box {
  background: var(--realdev-surface-alt, #f9fafb);
  border: 1px solid var(--realdev-border, #e5e7eb);
  border-radius: var(--realdev-radius-lg, 8px);
  padding: var(--realdev-space-lg, 16px);
}

.calc-price .message-box .inner {
  padding: 0;
  margin: 0;
}

.calc-price .shop_table {
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
}

.calc-price .shop_table tr+tr th,
.calc-price .shop_table tr+tr td {
  border-top: 1px dashed var(--realdev-border, #e5e7eb);
}

.calc-price .shop_table th,
.calc-price .shop_table td {
  padding: 10px 0;
  border: 0;
  background: transparent;
  vertical-align: middle;
  font-size: var(--realdev-font-size-md, 14px);
  text-transform: none;
  letter-spacing: 0;
}

.calc-price .shop_table th {
  font-weight: var(--realdev-font-weight-semibold, 600);
  color: var(--realdev-text, #1f2937);
  text-align: left;
  width: 40%;
}

.calc-price .shop_table td {
  text-align: right;
  color: var(--realdev-text, #1f2937);
}

.calc-price .calc-result .shop_table tr:last-child th,
.calc-price .calc-result .shop_table tr:last-child td {
  padding-top: 12px;
  border-top: 1px solid var(--realdev-border-strong, #d1d5db);
}

.calc-price .calc-result .shop_table tr:last-child td strong,
.calc-price .calc-result .shop_table tr:last-child th strong {
  font-size: var(--realdev-font-size-lg, 16px);
  color: var(--realdev-error, #ef4444);
}

.calc-price .message-box .is-small {
  margin: 10px 0 0;
  font-size: var(--realdev-font-size-sm, 12px);
  color: var(--realdev-text-muted, #6b7280);
  font-style: italic;
}

.calc-price .message-box.warning {
  background: var(--realdev-warning-soft, #fef3c7);
  border-color: var(--realdev-warning, #f59e0b);
}

.calc-price #calc-acc-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: var(--realdev-font-weight-regular, 400);
}

.calc-quote-cta {
  display: flex;
  align-items: flex-start;
  gap: var(--realdev-space-md, 12px);
  padding: var(--realdev-space-lg, 16px);
  border-radius: var(--realdev-radius-lg, 8px);
  background: linear-gradient(135deg,
      var(--realdev-primary-soft, #F5E6C8) 0%,
      var(--realdev-warning-soft, #fef3c7) 100%);
  border: 1px solid var(--realdev-primary-soft, #F5E6C8);
}

.calc-quote-cta .rd-icon {
  font-size: 22px;
  color: var(--realdev-success, #10b981);
  line-height: 1;
  margin-top: 2px;
}

.calc-quote-cta__title {
  margin: 0 0 4px;
  font-size: var(--realdev-font-size-lg, 16px);
  font-weight: var(--realdev-font-weight-bold, 700);
  color: var(--realdev-text, #1f2937);
  line-height: 1.35;
}

.calc-quote-cta__sub {
  margin: 0;
  font-size: var(--realdev-font-size-sm, 12px);
  color: var(--realdev-text-muted, #6b7280);
}

.calc-price-form {
  margin-top: var(--realdev-space-md, 12px);
}

.calc-price-form .wpcf7,
.calc-price-form .form-request-quote {
  margin: 0;
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding: 0;
}

.calc-price-form .wpcf7 p {
  margin-bottom: var(--realdev-space-md, 12px);
}

.calc-price-form input[type="text"],
.calc-price-form input[type="email"],
.calc-price-form input[type="tel"],
.calc-price-form input[type="url"],
.calc-price-form input[type="number"],
.calc-price-form textarea,
.calc-price-form select,
.calc-price-form .form-request-quote input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--realdev-border, #e5e7eb);
  border-radius: var(--realdev-radius-md, 6px);
  background: var(--surface, #fff);
  padding: 0 12px;
  font-size: var(--realdev-font-size-md, 14px);
  transition: border-color var(--realdev-transition, 160ms ease),
    box-shadow var(--realdev-transition, 160ms ease);
}

.calc-price-form .form-request-quote input.wpcf7-submit {
  width: max-content;
  background: var(--primary);
  display: block;
  margin-left: auto;
}

.calc-price-form .form-request-quote input.wpcf7-submit:hover {
  background: var(--primary);

}

.calc-price-form textarea {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
  resize: vertical;
}

.calc-price-form input:focus,
.calc-price-form textarea:focus,
.calc-price-form select:focus {
  border-color: var(--primary, #D4A038);
  box-shadow: 0 0 0 3px var(--realdev-primary-soft, #F5E6C8);
  outline: none;
}

.calc-price-form .form-numbers {
  margin-bottom: var(--realdev-space-md, 12px);
}

.calc-price-form .form-numbers>.wpcf7-form-control-wrap[data-name="textarea-name-numbers"],
.calc-price-form .form-numbers .wpcf7-textarea {
  display: none !important;
}

.calc-price-form .form-numbers .quote-holder {
  margin-bottom: var(--realdev-space-sm, 8px);
}

.calc-price-form .form-numbers .quote-holder:empty {
  margin-bottom: 0;
}

.calc-price-form .quote-pair {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.calc-price-form .quote-pair>.col {
  padding: 0 !important;
  flex: 0 0 auto;
}

.calc-price-form .quote-pair>.col:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.calc-price-form .quote-pair>.col:last-child {
  flex: 0 0 auto;
  width: auto;
  max-width: 210px;
}

.calc-price-form .quote-pair .row-collapse {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
}

.calc-price-form .quote-pair .row-collapse>.col {
  padding: 0 !important;
  flex: 0 0 auto;
}

.calc-price-form .quote-pair .row-collapse>.col:first-child {
  flex: 1 1 auto;
  min-width: 110px;
}

.calc-price-form .quote-pair .input-text {
  width: 100%;
  height: 42px;
  margin: 0;
  border: 1px solid var(--realdev-border, #e5e7eb);
  border-radius: var(--realdev-radius-md, 6px);
  background: var(--surface, #fff);
  padding: 0 12px;
  font-size: var(--realdev-font-size-md, 14px);
  transition: border-color var(--realdev-transition, 160ms ease),
    box-shadow var(--realdev-transition, 160ms ease);
}

.calc-price-form .quote-pair .input-text:focus {
  border-color: var(--primary, #D4A038);
  box-shadow: 0 0 0 3px var(--realdev-primary-soft, #F5E6C8);
  outline: none;
}

.calc-price-form .quote-remove {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--realdev-text-muted, #6b7280) !important;
  font-size: 0;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: color var(--realdev-transition, 160ms ease),
    transform var(--realdev-transition, 160ms ease);
  box-shadow: none !important;
}

.calc-price-form .quote-remove .rd-icon,
.calc-price-form .quote-remove svg,
.calc-price-form .quote-remove i {
  display: none !important;
}

.calc-price-form .quote-remove::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h18'/><path d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/><path d='M10 11v6'/><path d='M14 11v6'/></svg>") center/contain no-repeat;
}

.calc-price-form .quote-remove:hover {
  color: var(--realdev-error, #ef4444) !important;
  background: transparent !important;
  transform: scale(1.08);
}

.calc-price-form .form-button__add {
  width: 100%;
  margin: 0 !important;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1.5px dashed var(--realdev-border-strong, #d1d5db) !important;
  border-radius: var(--realdev-radius-md, 6px);
  background: var(--surface, #fff);
  color: var(--realdev-text, #1f2937) !important;
  font-weight: var(--realdev-font-weight-semibold, 600);
  font-size: var(--realdev-font-size-md, 14px);
  cursor: pointer;
  transition: all var(--realdev-transition, 160ms ease);
}

.calc-price-form .form-button__add:hover {
  border-color: var(--primary, #D4A038) !important;
  border-style: solid !important;
  color: var(--primary, #D4A038) !important;
  background: var(--realdev-primary-soft, #F5E6C8);
}

.calc-price-form .form-button__add .rd-icon,
.calc-price-form .form-button__add svg {
  font-size: 14px;
}

.calc-price-form .file-detail {
  position: relative;
  margin-bottom: var(--realdev-space-md, 12px);
}

.calc-price-form .file-detail>p:first-child,
.calc-price-form .file-detail>.file-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: var(--realdev-font-size-md, 14px);
  font-weight: var(--realdev-font-weight-semibold, 600);
  color: var(--realdev-text, #1f2937);
  cursor: help;
}

.calc-price-form .wpcf7-form-control.wpcf7-file,
.calc-price-form input[type="file"].wpcf7-file {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: var(--realdev-font-size-md, 14px);
  color: var(--realdev-text-muted, #6b7280);
  cursor: pointer;
  box-shadow: none !important;
}

.calc-price-form .wpcf7-form-control.wpcf7-file::file-selector-button,
.calc-price-form input[type="file"]::file-selector-button,
.calc-price-form .wpcf7-form-control.wpcf7-file::-webkit-file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 10px 6px 22px;
  margin: 0 12px 0 0;
  font-weight: var(--realdev-font-weight-semibold, 600);
  font-size: var(--realdev-font-size-md, 14px);
  color: var(--realdev-text, #1f2937);
  cursor: pointer;
  transition: color var(--realdev-transition, 160ms ease);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2.5' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 16px 16px;
}

.calc-price-form .wpcf7-form-control.wpcf7-file:hover::file-selector-button,
.calc-price-form input[type="file"]:hover::file-selector-button,
.calc-price-form .wpcf7-form-control.wpcf7-file:hover::-webkit-file-upload-button {
  color: var(--primary, #D4A038);
}

.calc-price-form .wpcf7-form-control-wrap[data-name*="file"],
.calc-price-form .wpcf7-form-control-wrap[data-name*="upload"],
.calc-price-form .file-upload-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-price-form .upload-hint,
.calc-price-form .file-hint {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: var(--realdev-font-size-sm, 12px);
  font-weight: var(--realdev-font-weight-regular, 400);
  color: var(--realdev-text-muted, #6b7280);
}

.calc-price-form .info-detail-upload {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  padding: 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--realdev-border, #e5e7eb);
  border-radius: var(--realdev-radius-lg, 8px);
  box-shadow: var(--realdev-shadow-lg, 0 12px 28px rgba(17, 24, 39, 0.10));
  font-size: var(--realdev-font-size-sm, 12px);
  line-height: 1.55;
  color: var(--realdev-text, #1f2937);
  z-index: var(--realdev-z-dropdown, 100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--realdev-transition, 160ms ease),
    visibility var(--realdev-transition, 160ms ease),
    transform var(--realdev-transition, 160ms ease);
  pointer-events: none;
}

.calc-price-form .info-detail-upload::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 24px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: var(--surface, #fff);
  filter: drop-shadow(0 2px 1px rgba(17, 24, 39, 0.06));
}

.calc-price-form .file-detail:hover .info-detail-upload,
.calc-price-form .file-detail:focus-within .info-detail-upload {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.calc-price-form .info-detail-upload .info-title {
  margin: 0 0 10px;
  font-size: var(--realdev-font-size-md, 14px);
  font-weight: var(--realdev-font-weight-bold, 700);
  color: var(--realdev-text, #1f2937);
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-price-form .info-detail-upload p {
  margin: 0 0 8px;
  color: var(--realdev-text-muted, #6b7280);
}

.calc-price-form .info-detail-upload p:last-child {
  margin-bottom: 0;
}

.calc-price-form .info-detail-upload .upload-demo-file {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--realdev-border, #e5e7eb);
}

.calc-price-form .info-detail-upload .upload-demo-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--realdev-font-size-md, 14px);
  font-weight: var(--realdev-font-weight-semibold, 600);
  color: var(--primary, #D4A038);
  text-decoration: none;
}

.calc-price-form .info-detail-upload .upload-demo-file a::before {
  content: "↓";
  font-size: 14px;
  font-weight: 700;
}

.calc-price-form .info-detail-upload .upload-demo-file a:hover {
  text-decoration: underline;
}

@media (max-width: 549px) {
  .calc-price-form .quote-pair>.col:last-child {
    max-width: 160px;
  }

  .calc-step .form-row {
    display: flex;
    align-items: center;
  }

  .calc-step .form-row label {
    min-width: 130px;
  }

  .calc-step .form-row input {
    margin: 0;
  }

  #calc-price-lightbox {
    margin-bottom: 45px;
  }

  .calc-price-form .quote-pair .row-collapse>.col:first-child {
    min-width: 80px;
  }
}

.calc-price-form .wpcf7-submit {
  width: 100%;
  height: 48px;
  font-weight: var(--realdev-font-weight-bold, 700);
  font-size: var(--realdev-font-size-md, 14px);
  letter-spacing: 0.3px;
}

.calc-price-form .wpcf7-not-valid-tip {
  font-size: var(--realdev-font-size-sm, 12px);
  margin-top: 4px;
}

.calc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--realdev-space-md, 12px);
  margin-top: var(--realdev-space-lg, 16px);
  padding-top: var(--realdev-space-md, 12px);
  border-top: 1px solid var(--realdev-border, #e5e7eb);
}

.calc-nav .calc-steps {
  margin: 0;
  padding: 0;
  border: 0;
}

.calc-nav__btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface, #fff);
  color: var(--realdev-text, #1f2937);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--realdev-transition, 160ms ease);
  box-shadow: none;
}

.calc-nav__btn:hover:not(:disabled) {
  color: var(--primary, #D4A038);
}

.calc-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calc-nav__btn i {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 549px) {
  .calc-price>*+* {
    margin-top: var(--realdev-space-md, 12px);
  }

  .calc-head__media {
    width: 60px;
    height: 60px;
  }

  .calc-head__price {
    font-size: var(--realdev-font-size-lg, 16px);
  }

  .calc-steps__item+.calc-steps__item {
    margin-left: 20px;
  }

  .calc-steps__item+.calc-steps__item::before {
    width: 16px;
  }

  .calc-steps__label {
    display: none;
  }

  .calc-price .shop_table th {
    width: 50%;
  }

  .calc-nav__btn--next span {
    font-size: var(--realdev-font-size-sm, 12px);
  }
}