/* ============================================================
   NIF Multi-Step Form — Complete CSS
   Compatible with: nif-form-wrapper, all steps, confirmation,
   payment, sidebar, toast
   ============================================================ */

/* === Reset & Base === */
.nif-form-wrapper *,
.nif-form-wrapper *::before,
.nif-form-wrapper *::after {
  box-sizing: border-box;
}

/* === Page Heading === */
.nif-page-heading {
  text-align: center;
  margin-bottom: 36px;
}
.nif-page-heading h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #1a3a6b;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.nif-page-heading p {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* === Wrapper === */
.nif-form-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   TOP 3-STEP STEPPER
   ============================================================ */
.nif-top-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}
.nif-top-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.3s;
}
.nif-top-step.active {
  color: #1a3a6b;
}
.nif-top-step.done {
  color: #475569;
}
.nts-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  flex-shrink: 0;
}
.nif-top-step.active .nts-num {
  background: #1a3a6b;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.15);
}
.nif-top-step.done .nts-num {
  background: #16a34a;
  color: #fff;
}
.nts-label {
  font-size: 0.88rem;
}
.nts-dots {
  display: flex;
  gap: 4px;
  margin: 0 6px;
}
.nts-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e2e8f0;
  display: block;
}

/* ============================================================
   BODY LAYOUT
   ============================================================ */
.nif-body-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.nif-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(26, 58, 107, 0.05);
}
.nif-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  position: relative;
  cursor: default;
}
.nif-side-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 38px;
  width: 2px;
  height: calc(100% - 8px);
  background: #e2e8f0;
  transition: background 0.3s;
}
.nif-side-item.nsi-done::after {
  background: #1a3a6b;
  opacity: 0.4;
}
.nsi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.nif-side-item.nsi-active .nsi-icon {
  background: #1a3a6b;
  color: #fff;
  border-color: #1a3a6b;
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.15);
}
.nif-side-item.nsi-done .nsi-icon {
  background: #e8f0fb;
  color: #1a3a6b;
  border-color: #1a3a6b;
}
.nsi-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s;
  line-height: 1.3;
}
.nif-side-item.nsi-active .nsi-label {
  color: #1a3a6b;
}
.nif-side-item.nsi-done .nsi-label {
  color: #1e293b;
}

/* ============================================================
   MAIN CARD
   ============================================================ */
.nif-main-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 30px 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(26, 58, 107, 0.05);
  min-height: 420px;
}

/* === Step Title === */
.nif-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

/* ============================================================
   FORM GRID ROWS
   ============================================================ */
.nif-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.nif-row-half {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 48%;
  margin-bottom: 18px;
}
.nif-mb-18 {
  margin-bottom: 18px;
}

/* ============================================================
   FIELD GROUP
   ============================================================ */
.nif-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nif-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.nif-info {
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INPUTS & SELECTS
   ============================================================ */
.nif-form-wrapper input.nif-input,
.nif-form-wrapper select.nif-select,
.nif-form-wrapper input[type="date"].nif-input,
.nif-form-wrapper input[type="tel"].nif-input,
.nif-form-wrapper input[type="email"].nif-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.92rem;
  color: #1e293b;
  box-shadow: none;
  transition: all 0.2s;
  font-family: inherit;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.nif-form-wrapper input.nif-input:focus,
.nif-form-wrapper select.nif-select:focus,
.nif-form-wrapper input[type="date"].nif-input:focus,
.nif-form-wrapper input[type="tel"].nif-input:focus,
.nif-form-wrapper input[type="email"].nif-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.nif-form-wrapper input.nif-input::placeholder {
  color: #94a3b8;
}

/* Select dropdown arrow */
.nif-form-wrapper select.nif-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  background-color: #f8fafc;
}

/* Input with icon wrapper */
.nif-input-icon-wrap {
  position: relative;
}
.nif-input-icon-wrap input {
  padding-right: 40px;
}
.nif-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* === Validation error states === */
.nif-field-group.nif-has-error input.nif-input,
.nif-field-group.nif-has-error select.nif-select,
.nif-field-group.nif-has-error input[type="date"].nif-input,
.nif-field-group.nif-has-error input[type="tel"].nif-input,
.nif-field-group.nif-has-error input[type="email"].nif-input {
  border-color: #dc2626;
  background: #fff5f5;
}
.nif-error {
  font-size: 0.8rem;
  color: #dc2626;
  display: none;
}
.nif-field-group.nif-has-error .nif-error {
  display: block;
}

/* ============================================================
   CHECKBOXES
   ============================================================ */
.nif-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}
.nif-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a3a6b;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   ALERT WARNING BOX
   ============================================================ */
.nif-alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}
.nif-alert-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   RADIO OPTIONS (Tax Representative Step)
   ============================================================ */
.nif-radio-option {
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.nif-radio-option:hover {
  border-color: #2563eb;
  background: #f8fbff;
}
.nif-radio-option.nif-radio-selected {
  border-color: #1a3a6b;
  background: #e8f0fb;
}
.nif-radio-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nif-radio-header input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a3a6b;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
}
.nif-radio-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}
.nif-radio-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.5;
}
.nif-sub-options {
  margin: 14px 0 0 28px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(26, 58, 107, 0.1);
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.6;
}
.nif-sub-options p {
  margin-bottom: 12px;
  margin-top: 0;
}
.nif-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.nif-radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1a3a6b;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
}
.nif-radio-row label {
  font-size: 0.86rem;
  color: #4b5563;
  cursor: pointer;
  line-height: 1.5;
}

/* Inline radio group (billing "I am a company") */
.nif-inline-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nif-inline-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}
.nif-inline-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1a3a6b;
  cursor: pointer;
}

/* ============================================================
   PROMO CARDS (Step 2)
   ============================================================ */
.nif-promo-card {
  border: 1px solid rgba(26, 58, 107, 0.18);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0f6ff 0%, #fff 60%);
}
.nif-promo-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}
.nif-promo-text {
  font-size: 10px;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============================================================
   NAVIGATION BUTTONS
   ============================================================ */
.nif-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.nif-btn {
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  min-width: 130px;
  text-align: center;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.nif-btn-outline {
  background: #fff;
  border-color: #1a3a6b;
  color: #1a3a6b;
}
.nif-btn-outline:hover {
  background: #e8f0fb;
}
.nif-btn-primary {
  background: #1a3a6b;
  color: #fff;
  border-color: #1a3a6b;
  box-shadow: 0 4px 14px rgba(26, 58, 107, 0.25);
}
.nif-btn-primary:hover {
  background: #2355a0;
  box-shadow: 0 6px 20px rgba(26, 58, 107, 0.32);
  transform: translateY(-1px);
}
.nif-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.nif-btn-row p {
  display: flex;
  gap: 4px;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#nif-toast-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  pointer-events: none;
  max-width: 320px;
}
#nif-toast-msg.nif-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CONFIRMATION SECTION (Step 6)
   ============================================================ */
.nif-confirm-wrapper {
  max-width: 100%;
}
.nif-confirm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(26, 58, 107, 0.05);
  margin-bottom: 12px;
}

/* Request header */
.nif-confirm-req-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.nif-confirm-req-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}
.nif-confirm-req-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nif-confirm-delete-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.nif-confirm-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}
.nif-confirm-details-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.nif-confirm-details-btn:hover {
  background: #f8fafc;
  border-color: #1a3a6b;
  color: #1a3a6b;
}
#conf-details-chevron {
  transition: transform 0.3s;
}
#conf-details-chevron.rotated {
  transform: rotate(180deg);
}

/* Contract warning bar */
.nif-contract-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fef9ec;
  border-bottom: 1px solid #fde68a;
}
.nif-contract-warning-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #92400e;
}
.nif-view-contract-btn {
  background: #b45309;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.nif-view-contract-btn:hover {
  background: #92400e;
}

/* Contract accept checkbox row */
.nif-confirm-accept {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.nif-link {
  color: #1a3a6b;
  text-decoration: underline;
}

/* Collapsible details body */
.nif-confirm-details {
  padding: 0 20px 20px;
}
.nif-confirm-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.nif-confirm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.nif-confirm-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.nif-edit-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  color: #1a3a6b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  transition: all 0.2s;
  font-family: inherit;
}
.nif-edit-btn:hover {
  background: #e8f0fb;
  border-color: #1a3a6b;
}
.nif-confirm-data-grid {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nif-confirm-row {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  flex-wrap: wrap;
}
.nif-confirm-key {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
.nif-confirm-val {
  color: #475569;
}

/* Add new NIF button */
.nif-add-new-btn-wrap {
  margin-bottom: 16px;
}
.nif-add-new-nif-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #f0f6ff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  color: #1a3a6b;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.nif-add-new-nif-btn:hover {
  background: #dbeafe;
  border-color: #1a3a6b;
}

/* Confirmation continue button row */
.nif-confirm-btn-row {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}

/* ============================================================
   PAYMENT SECTION (Step 7)
   ============================================================ */
.nif-payment-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.nif-payment-left {
  flex: 1;
  min-width: 0;
}

/* NIF Express promo banner */
.nif-express-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.nif-express-promo-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a5f;
  display: block;
  margin-bottom: 2px;
}
.nif-express-promo-text p {
  font-size: 0.85rem;
  color: #3b82f6;
  margin: 0;
}
.nif-express-hire-btn {
  background: #1a3a6b;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.nif-express-hire-btn:hover {
  background: #2355a0;
}

/* Billing card */
.nif-billing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nif-billing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

/* Stripe notice box */
.nif-stripe-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.nif-stripe-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.nif-stripe-text {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Payment action buttons */
.nif-payment-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.nif-place-order-btn {
  /* Uses .nif-btn .nif-btn-primary */
}

/* ============================================================
   PURCHASE SUMMARY SIDEBAR
   ============================================================ */
.nif-purchase-sidebar {
  width: 340px;
  flex-shrink: 0;
}
.nif-purchase-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.nif-purchase-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}
.nif-purchase-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nif-purchase-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.nif-purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}
.nif-purchase-row span:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: #1e293b;
}
.nif-purchase-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}
.nif-purchase-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 6px;
}
.nif-discount-row {
  color: #16a34a;
  font-weight: 600;
}
.nif-purchase-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 4px;
}
.nif-total-amount {
  color: #1a3a6b;
  font-size: 1.1rem;
}

/* ============================================================
   COUPON CARD
   ============================================================ */
.nif-coupon-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nif-coupon-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.nif-coupon-input {
  flex: 1;
  height: 42px;
}
.nif-apply-coupon-btn {
  background: #fff;
  border: 1px solid #1a3a6b;
  color: #1a3a6b;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
  height: 42px;
}
.nif-apply-coupon-btn:hover {
  background: #e8f0fb;
}
.nif-coupon-msg {
  margin-top: 8px;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 5px;
}
.nif-coupon-msg.success {
  background: #dcfce7;
  color: #166534;
}
.nif-coupon-msg.error {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================================
   HIDDEN CF7 ELEMENTS & MISC FIXES
   ============================================================ */
#nif_cf7_submit,
.nif-cf7-hidden-submit {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7-form-control.wpcf7-date {
  width: 100% !important;
  box-sizing: border-box;
}
.nif-field-group br {
  display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .nif-payment-layout {
    flex-direction: column;
  }
  .nif-purchase-sidebar {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nif-body-layout {
    flex-direction: column;
  }
  .nif-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }
  .nif-side-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    width: calc(20% - 8px);
    min-width: 55px;
  }
  .nif-side-item::after {
    display: none;
  }
  .nsi-label {
    font-size: 11px;
    margin-top: 4px;
  }
  .nif-row-2 {
    grid-template-columns: 1fr;
  }
  .nif-row-half {
    max-width: 100%;
  }
  .nif-btn-row,
  .nif-payment-btn-row {
    flex-direction: column-reverse;
  }
  .nif-btn {
    width: 100%;
  }
  .nif-main-card {
    padding: 18px 16px;
  }
  .nif-top-stepper {
    gap: 4px;
  }
  .nts-label {
    font-size: 0.78rem;
  }
  .nif-contract-warning {
    flex-direction: column;
    align-items: flex-start;
  }
  .nif-billing-card {
    padding: 18px 16px;
  }
  .nif-express-promo {
    flex-direction: column;
    align-items: flex-start;
  }
  .nif-confirm-req-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nif-sidebar {
    gap: 6px;
  }
  .nif-side-item {
    width: calc(20% - 5px);
  }
  .nif-top-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nts-dots {
    display: none;
  }
}

