/* NewYard DMARC Checker — Form Styles */

#nydc-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

#nydc-form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(25, 98, 144, 0.12);
  padding: 36px 40px;
  border-top: 5px solid #009ee2;
}

#nydc-form-card h2 {
  color: #196290;
  font-size: 22px;
  margin-bottom: 10px;
}

#nydc-form-card p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.nydc-field {
  margin-bottom: 18px;
}

.nydc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #414141;
  margin-bottom: 6px;
}

.nydc-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #414141;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

.nydc-field input:focus {
  border-color: #009ee2;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.12);
}

.nydc-field input.nydc-error {
  border-color: #ef4444;
}

#nydc-submit {
  width: 100%;
  background: #ffb700;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 6px;
}

#nydc-submit:hover:not(:disabled) {
  background: #e6a400;
}

#nydc-submit:active:not(:disabled) {
  transform: scale(0.98);
}

#nydc-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#nydc-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

#nydc-message.nydc-success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #166534;
}

#nydc-message.nydc-error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

/* Loader dots */
.nydc-btn-loader::after {
  content: '';
  display: inline-block;
  animation: nydc-dots 1.2s steps(4, end) infinite;
}

@keyframes nydc-dots {
  0%, 20%  { content: '.'; }
  40%      { content: '..'; }
  60%      { content: '...'; }
  80%, 100% { content: ''; }
}

@media (max-width: 500px) {
  #nydc-form-card {
    padding: 24px 20px;
  }
}

/* ── Prijscalculator ──────────────────────────────────────────────────────── */

.nydc-calc-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.nydc-calc-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(25, 98, 144, 0.12);
  border-top: 5px solid #009ee2;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.nydc-calc-title {
  color: #196290;
  font-size: 22px;
  margin: 0;
  padding: 28px 32px 0;
}

.nydc-calc-intro {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
  padding: 0 32px;
}

.nydc-calc-products {
  padding: 20px 32px 0;
}

.nydc-calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.nydc-calc-row:last-child {
  border-bottom: none;
}

.nydc-calc-row-info {
  flex: 1 1 0;        /* can grow AND shrink below content size */
  min-width: 0;       /* critical: allows flex child to shrink past its content */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nydc-calc-row-label {
  font-size: 14px;
  font-weight: 600;
  color: #414141;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nydc-calc-row-price {
  font-size: 12px;
  color: #009ee2;
  font-weight: 600;
  white-space: nowrap;
}

.nydc-calc-row-unit {
  font-size: 11px;
  color: #94a3b8;
  font-weight: normal;
}

/* Force input size — override any theme styles */
.nydc-calc-wrapper .nydc-calc-qty {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  flex: 0 0 80px !important;
  padding: 8px 4px 8px 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #196290 !important;
  text-align: left !important;
  background: #fff !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s;
  outline: none;
}

/* Spinners altijd zichtbaar — voorkomt layout-sprong bij focus */
.nydc-calc-wrapper .nydc-calc-qty::-webkit-inner-spin-button,
.nydc-calc-wrapper .nydc-calc-qty::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
  opacity: 1 !important;
  cursor: pointer;
}

.nydc-calc-wrapper .nydc-calc-qty:focus {
  border-color: #009ee2 !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.12) !important;
}

/* Totalen balk */
.nydc-calc-total-bar {
  margin-top: 20px;
  background: #196290;
  padding: 18px 32px 12px;
}

.nydc-calc-total-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nydc-calc-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.nydc-calc-total-label {
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex: 1;
}

.nydc-calc-total-right {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.nydc-calc-total-amount {
  color: #ffb700;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-align: right;
  min-width: 100px; /* vaste breedte zodat bedragen altijd uitlijnen */
}

.nydc-calc-total-suffix {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nydc-calc-total-empty {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 4px 0;
}

.nydc-calc-btw-note {
  margin-top: 10px;
  text-align: right;
  font-size: 11px;
  color: rgba(255,255,255,0.50);
  font-style: italic;
}

.nydc-calc-quote-section {
  padding: 20px 32px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.nydc-calc-quote-intro {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.nydc-calc-email-row {
  display: flex;
  gap: 10px;
}

.nydc-calc-email {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #414141;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.nydc-calc-email:focus {
  border-color: #009ee2;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.12);
}

.nydc-calc-email.nydc-error {
  border-color: #ef4444;
}

.nydc-calc-quote-btn {
  background: #ffb700;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nydc-calc-quote-btn:hover:not(:disabled) {
  background: #e6a400;
}

.nydc-calc-quote-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.nydc-calc-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.nydc-calc-msg--success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #166534;
}

.nydc-calc-msg--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

@media (max-width: 540px) {
  .nydc-calc-wrapper {
    padding: 0;
  }
  .nydc-calc-card {
    border-radius: 0;
  }
  .nydc-calc-title,
  .nydc-calc-intro,
  .nydc-calc-products,
  .nydc-calc-total-bar,
  .nydc-calc-quote-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nydc-calc-email-row {
    flex-direction: column;
  }
  .nydc-calc-quote-btn {
    width: 100%;
  }
}
