/* ── Nomination ── */

.nom-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 28px;
}
.nom-page .page-header {
  margin-bottom: var(--space-3);
}
.nom-header {
  padding: var(--space-3) 0 var(--space-5);
}

.nom-card {
  background: #fffef9;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  transform: rotate(-0.3deg);
  position: relative;
}
.nom-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 31px,
    #e8e4db 31px,
    #e8e4db 32px
  );
  opacity: 0.35;
  pointer-events: none;
  border-radius: var(--radius-sm);
  z-index: -1;
}
.nom-card > * {
  position: relative;
}
.nom-card .field-underline,
.nom-card .field-textarea {
  font-family: var(--font-system);
  font-size: 18px;
  font-weight: var(--weight-medium);
}
/* Custom select: handwritten trigger, system-font dropdown */
.custom-select {
  position: relative;
}
.custom-select-trigger {
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 28px 10px 2px;
  font-family: inherit;
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  height: 38px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  transition: border-color var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9a8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.custom-select-trigger:focus {
  border-bottom-color: var(--color-accent);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234f6d7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.custom-select-trigger--placeholder .custom-select-text {
  color: var(--color-text-tertiary);
  font-style: italic;
  font-weight: var(--weight-light);
}
.custom-select-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}
.custom-select-option {
  padding: 8px 12px;
  font-family: var(--font-system);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.custom-select-option:hover,
.custom-select-option--active {
  background: var(--color-surface-hover);
}

/* Phone field layout */
.phone-field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
/* Phone code custom select */
.phone-code-wrap {
  flex-shrink: 0;
}
.phone-code-trigger {
  width: auto !important;
  font-family: var(--font-system) !important;
  font-size: 14px !important;
  padding-right: 20px !important;
  white-space: nowrap;
}
.phone-code-panel {
  width: 200px !important;
  right: auto !important;
}
.nom-card .field-underline--large {
  font-size: 26px;
  font-weight: var(--weight-semibold);
}

.nom-section-inner {
  padding: 22px 26px;
}
.nom-section-inner + .nom-section-inner {
  border-top: none;
}
.nom-section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xs);
  font-weight: var(--weight-medium);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b0ada6;
  margin-bottom: 18px;
}
.nom-field {
  margin-bottom: 22px;
}

/* Toggle */
.toggle { display: inline-flex; gap: var(--space-1); }
.toggle span {
  padding: 6px var(--space-4);
  font-size: var(--text-2xs);
  font-family: inherit;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  display: inline-block;
}
.toggle span:hover { background: var(--color-surface-hover); }
.toggle span.on { background: var(--color-accent); color: var(--color-white); }

/* ── Layout classes (migrated from inline styles) ── */

.nom-identity-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.nom-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.nom-photo-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.nom-photo-circle {
  border: 2px solid var(--color-border);
}
.nom-photo-circle--empty {
  border-style: dashed;
  background: transparent;
}
.nom-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nom-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.nom-photo-circle--empty .nom-photo-overlay {
  background: transparent;
}
.nom-photo-circle:not(.nom-photo-circle--empty) .nom-photo-overlay {
  background: rgba(0, 0, 0, 0);
}
.nom-photo-circle:not(.nom-photo-circle--empty) .nom-photo-btn {
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.nom-photo-circle:not(.nom-photo-circle--empty):hover .nom-photo-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.nom-photo-circle:not(.nom-photo-circle--empty):hover .nom-photo-btn {
  opacity: 1;
}
.nom-photo-btn {
  pointer-events: none;
  color: var(--color-white);
  border-color: var(--color-white);
}
.nom-photo-circle--empty .nom-photo-btn {
  color: var(--color-text-secondary);
  border-color: transparent;
}
.nom-photo-circle--empty:hover .nom-photo-btn {
  border-color: var(--color-border);
}
.nom-photo-label {
  font-size: var(--text-3xs);
  text-align: center;
}
.nom-photo-remove-link {
  font-size: var(--text-3xs);
  color: var(--color-text-tertiary);
  text-decoration: underline;
  cursor: pointer;
}
.nom-photo-remove-link:hover {
  color: var(--color-danger);
}
.nom-identity-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px 24px;
}
.nom-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 24px;
  align-items: start;
}
.nom-actions {
  padding: 22px 26px 32px;
  display: flex;
  gap: 12px;
}
.nom-submit-area {
  padding: 22px 26px 32px;
  text-align: center;
}
.nom-submit-hint {
  font-size: 12px;
  color: #b0ada5;
  margin-top: 8px;
  text-align: center;
  padding-bottom: 60px;
}
.nom-criteria-list {
  font-size: 16px;
  color: #6b6b63;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0;
}
.nom-spacer {
  height: 32px;
}
.nom-closed-text {
  font-size: 14px;
  color: #6b6b63;
  line-height: 1.7;
  margin-bottom: 24px;
}
.nom-edit-intro {
  margin-bottom: 24px;
}

/* Page-subtitle spacing within nominate */
.nom-page .page-subtitle { margin-bottom: 4px; }
.nom-page .page-subtitle:last-of-type { margin-top: 8px; margin-bottom: 0; }

/* ── Success page ── */

.nom-success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nom-success-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-normal);
  margin-bottom: 16px;
}
.nom-success-body {
  font-size: 14px;
  color: #6b6b63;
  line-height: 1.7;
  margin-bottom: 8px;
}
.nom-success-note {
  font-size: 14px;
  color: #9a9a8e;
  margin-bottom: 32px;
}
.nom-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
