.philtec-configurator * {
  box-sizing: border-box;
}

.philtec-configurator {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  padding: 90px 20px;
}

.config-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.config-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.config-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0066cc;
  margin-bottom: 18px;
}

.config-header h2 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px;
  letter-spacing: 0;
}

.config-header p {
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

.config-grid {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 30px;
  align-items: start;
}

.config-steps {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-btn {
  border: 1px solid #dbe5ef;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
}

.step-btn.active {
  border-color: #0066cc;
  background: #eef6ff;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-btn.active .step-number {
  background: #0066cc;
  color: #ffffff;
}

.step-btn small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 700;
}

.step-btn strong {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.config-card,
.summary-card {
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.config-card {
  padding: 40px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-heading span {
  color: #0066cc;
  font-size: 20px;
  font-weight: 700;
}

.step-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.step-description {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 32px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.option-card {
  position: relative;
  border: 1px solid #dbe5ef;
  border-radius: 22px;
  background: #f8fafc;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

.option-card.active-radio {
  border-color: #0066cc;
  background: #eef6ff;
}

.option-card input {
  position: absolute;
  opacity: 0;
}

.option-card strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  margin-bottom: 10px;
}

.option-card .option-copy > span {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 700;
}

.form-group select {
  width: 100%;
  height: 58px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.form-group select:focus {
  border-color: #0066cc;
}

.double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 15px;
}

.checkbox-item {
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
}

.checkbox-item span {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.info-box {
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 18px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #eef2f7;
  padding-top: 30px;
  margin-top: 40px;
}

.nav-btn {
  height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-btn.primary {
  background: #0066cc;
  color: #ffffff;
}

.nav-btn.primary:hover {
  background: #0053a6;
}

.nav-btn.secondary {
  background: #e2e8f0;
  color: #334155;
}

.summary-card {
  padding: 32px;
  position: sticky;
  top: 40px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 26px;
}

.summary-header span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
}

.summary-header label {
  background: #eef6ff;
  color: #0066cc;
  border: 1px solid #cfe4ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.summary-group {
  margin-bottom: 22px;
}

.summary-group small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.summary-group strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.6;
  display: block;
}

.suggested-box {
  margin-top: 30px;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 24px;
  padding: 24px;
}

.suggested-box span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0066cc;
  font-weight: 700;
  margin-bottom: 12px;
}

.suggested-box h4 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0;
}

.suggested-box p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.submit-spec-btn {
  margin-top: 24px;
  display: block;
  width: 100%;
  text-align: center;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 16px;
  padding: 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.submit-spec-btn:hover {
  background: #1e293b;
}

body.philtec-modal-open {
  overflow: hidden;
}

.config-submit-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.config-submit-modal[hidden] {
  display: none;
}

.config-submit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.config-submit-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.config-submit-dialog h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #0f172a;
}

.config-submit-dialog > p {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.7;
}

.config-submit-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.config-submit-dialog .form-group input,
.config-submit-dialog .form-group textarea {
  width: 100%;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
}

.config-submit-dialog .form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.config-submit-dialog .form-group input:focus,
.config-submit-dialog .form-group textarea:focus {
  border-color: #0066cc;
}

.submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.submit-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.submit-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.submit-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

.philtec-cf7-wrap .wpcf7 {
  margin: 0;
}

.philtec-cf7-wrap .wpcf7 form {
  display: grid;
  gap: 18px;
}

.philtec-cf7-wrap .wpcf7 label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 700;
}

.philtec-cf7-wrap .wpcf7 input[type="text"],
.philtec-cf7-wrap .wpcf7 input[type="email"],
.philtec-cf7-wrap .wpcf7 input[type="tel"],
.philtec-cf7-wrap .wpcf7 input[type="url"],
.philtec-cf7-wrap .wpcf7 textarea,
.philtec-cf7-wrap .wpcf7 select {
  width: 100%;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
}

.philtec-cf7-wrap .wpcf7 textarea {
  min-height: 110px;
}

.philtec-cf7-wrap .wpcf7 input:focus,
.philtec-cf7-wrap .wpcf7 textarea:focus,
.philtec-cf7-wrap .wpcf7 select:focus {
  border-color: #0066cc;
}

.philtec-cf7-wrap .wpcf7 input[type="submit"],
.philtec-cf7-wrap .wpcf7 button[type="submit"] {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  background: #0066cc;
  color: #ffffff;
}

.philtec-cf7-wrap .wpcf7 input[type="submit"]:hover,
.philtec-cf7-wrap .wpcf7 button[type="submit"]:hover {
  background: #0052a3;
}

.philtec-cf7-wrap .wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
}

.philtec-cf7-wrap .wpcf7-response-output {
  margin: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.philtec-cf7-missing {
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-steps,
  .summary-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  .philtec-configurator {
    padding: 70px 16px;
  }

  .config-header h2 {
    font-size: 34px;
  }

  .config-card,
  .summary-card {
    border-radius: 24px;
  }

  .config-card {
    padding: 24px;
    min-height: auto;
  }

  .double-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .step-heading h3 {
    font-size: 24px;
  }

  .nav-actions {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
  }
}
