/* ── Fonts ── */
@font-face {
  font-family: 'Nissan Brand';
  src: url('Nissan Brand Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nissan Brand';
  src: url('Nissan Brand Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Nissan Brand';
  src: url('Nissan Brand Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Nissan Brand';
  src: url('Nissan Brand Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* ── Reset (scoped to modal only) ── */
.modal-overlay *, .modal-overlay *::before, .modal-overlay *::after {
  box-sizing: border-box;
}

/* ── Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* ── Modal box ── */
.nsp-modal {
  background-color: #ffffff;
  border-radius: 0;
  padding: 36px 40px 40px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* ── Close button ── */
.nsp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: #111111;
  padding: 0;
}

.nsp-modal-close:hover {
  color: #555555;
}

/* ── Modal logo ── */
.nsp-modal-logo {
  display: block;
  margin-bottom: 20px;
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* ── Modal header ── */
.nsp-modal-title {
  color: #111111;
  font-family: 'Nissan Brand', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nsp-modal-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #cccccc;
}

.nsp-modal-intro {
  color: #333333;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* ── Form grid ── */
.nsp-modal form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

/* ── Field group: input on top, label below ── */
.nsp-modal .form-group {
  display: flex;
  flex-direction: column;
}

.nsp-modal .form-group select,
.nsp-modal .form-group input {
  background-color: transparent;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  color: #111111;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 0.95rem;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.nsp-modal .form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.nsp-modal .form-group select:focus,
.nsp-modal .form-group input:focus {
  border-color: #aaaaaa;
}

.nsp-modal .form-group input::placeholder {
  color: transparent;
}

.nsp-modal .form-group label {
  color: #555555;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 0.8rem;
  margin-top: 6px;
}

/* ── Submit row spans full grid ── */
.nsp-modal .form-submit-row {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.nsp-modal-submit {
  background-color: #111111;
  border: none;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 40px;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.nsp-modal-submit:hover {
  background-color: #333333;
}

.nsp-modal-submit:disabled {
  background-color: #cccccc;
  cursor: default;
}
