:root {
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --input-bg: #eef0f5;
  --accent: #4f6ef7;
  --accent-hover: #3a58e0;
  --red: #cc1f3b;
  --red-hover: #a81830;
  --text: #1a1d2e;
  --text-muted: #6b7280;
  --border: #e2e5ef;
  --icon: #9ca3af;
  --label: #374151;
}

/* ─── Layout ─────────────────────────────── */

.pn-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

.pn-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.pn-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ─── Section Divider ────────────────────── */

.pn-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
}

.pn-divider span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.pn-divider::before,
.pn-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Grid ───────────────────────────────── */

.pn-grid-1 { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pn-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pn-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pn-grid--mt { margin-top: 18px; }

/* ─── Field ──────────────────────────────── */

.pn-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pn-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--label);
  text-transform: uppercase;
}

/* ─── Select ─────────────────────────────── */

.pn-select {
  background: #f5f6fb;
  border: 1.5px solid #e2d9d0;
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 38px 12px 14px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pn-select:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.pn-select option {
  background: #fff;
  color: var(--text);
}

.pn-select--code {
  padding-right: 30px;
}

/* ─── Select Arrow ───────────────────────── */

.pn-has-arrow {
  position: relative;
}

.pn-has-arrow::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 38px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.3s;
  pointer-events: none;
}

.pn-has-arrow.pn-active::after {
  transform: rotate(-135deg);
}

/* ─── Input ──────────────────────────────── */

.pn-input {
  background: #f5f6fb;
  border: 1.5px solid #e2d9d0;
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pn-input::placeholder {
  color: #9ca3af;
}

.pn-input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

/* ─── Textarea ───────────────────────────── */

.pn-textarea {
  background: #f5f6fb;
  border: 1.5px solid #e2d9d0;
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 11px 14px 12px 40px;
  outline: none;
  width: 100%;
  appearance: none;
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pn-textarea::placeholder {
  color: #9ca3af;
}

.pn-textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

/* ─── Icon Input Wrap ────────────────────── */

.pn-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pn-icon {
  position: absolute;
  left: 13px;
  color: var(--icon);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.pn-icon svg {
  width: 16px;
  height: 16px;
}

.pn-icon--top {
  top: 13px;
  align-items: flex-start;
}

.pn-input-wrap > .pn-input {
  padding-left: 40px;
}

/* ─── Mobile Wrap ────────────────────────── */

.pn-mobile-wrap {
  display: flex;
  gap: 8px;
}

.pn-code-select-wrap {
  position: relative;
  width: 90px;
  flex-shrink: 0;
}

.pn-code-select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s;
  pointer-events: none;
}

.pn-code-select-wrap .pn-select {
  width: 100%;
}

.pn-input--tel {
  flex: 1;
}

/* ─── Validation ─────────────────────────── */

form.pn-submitted .pn-input:invalid,
form.pn-submitted .pn-select:invalid,
form.pn-submitted .pn-textarea:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 31, 59, 0.08);
}

/* ─── Form Footer ────────────────────────── */

/*.pn-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}*/

/* ─── Terms ──────────────────────────────── */

.pn-terms {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.pn-terms__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.pn-terms__text {
  font-size: 13px;
  color: var(--text-muted);
}

.pn-terms__link {
  color: var(--accent);
  text-decoration: none;
}

.pn-terms__link:hover {
  text-decoration: underline;
}

/* ─── Captcha ────────────────────────────── */

.pn-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 200px;
}

.pn-captcha__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.pn-captcha__logo {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: #9ca3af;
  gap: 2px;
}

.pn-captcha__logo svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* ─── Submit Button ──────────────────────── */

.pn-btn-submit {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 34px;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(204, 31, 59, 0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

/*.pn-btn-submit:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 31, 59, 0.4);
}*/

.pn-btn-submit:active {
  transform: translateY(0);
}

.pn-btn-submit svg {
  width: 16px;
  height: 16px;
}

/* ─── Responsive ─────────────────────────── */

@media (max-width: 700px) {
  .pn-form {
    padding: 24px 18px;
  }
  .pn-grid-3 {
    grid-template-columns: 1fr;
  }
  .pn-grid-2 {
    grid-template-columns: 1fr;
  }
  .pn-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pn-btn-submit {
    width: 100%;
    justify-content: center;
  }
  .pn-captcha {
    width: 100%;
  }
}

@media (min-width: 701px) and (max-width: 860px) {
  .pn-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* footer */
.pn-footer {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Desktop */
.pn-footer-top {
        margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; 
}

/*  Mobile */
@media (max-width: 700px) {
  .pn-footer-top {
    flex-direction: column;      /* stack */
    align-items: flex-start;     /* left align */
    gap: 12px;
  }

  .pn-captcha {
    width: 100%;                /* full width */
    justify-content: space-between;
  }

  .pn-btn-submit {
    width: 100%;                /* full width button */
  }
}

/*  IMPORTANT FIX */
.pn-btn-submit {
  align-self: flex-start;
  margin-left: 0; /* ensure left align */
}

/* spacing alignment */
.pn-terms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pn-captcha {
  display: flex;
  align-items: center;
}