/* ---------- Proposal Page ---------- */
body { background: var(--bg-0); }

.prop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.prop-back-link {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.prop-back-link:hover { color: var(--text); }

.prop-main {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 60px;
}

.prop-container {
  width: 100%;
  max-width: 680px;
}

/* Header */
.prop-header {
  text-align: center;
  margin-bottom: 32px;
}
.prop-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}
.prop-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.prop-header p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Card */
.prop-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Form */
.prop-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prop-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.prop-req { color: #ef4444; }
.prop-muted {
  color: var(--text-2);
  font-weight: 400;
  font-size: 0.78rem;
}
.prop-field input {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}
.prop-field input::placeholder { color: var(--text-2); opacity: 0.5; }
.prop-field input:focus {
  outline: none;
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.prop-field input.invalid {
  border-color: rgba(239,68,68,0.4);
}
.prop-hint {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.4;
}
.prop-error {
  font-size: 0.78rem;
  color: #ef4444;
  display: none;
}
.prop-error.show { display: block; }
.prop-error-center { text-align: center; }

/* Submit button */
.prop-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.prop-btn-spinner { display: none; }
.prop-submit.loading .prop-btn-text { display: none; }
.prop-submit.loading .prop-btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.prop-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success card */
.prop-success { text-align: center; }
.prop-success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 16px;
}
.prop-success h2 {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.prop-success p {
  color: var(--text-2);
  font-size: 0.92rem;
  margin: 0 0 24px;
  line-height: 1.6;
}
.prop-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.prop-success-btn {
  flex: 1;
  min-width: 180px;
  justify-content: center;
}

/* Footer link below card */
.prop-footer-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.prop-footer-link:hover { color: var(--indigo); }

/* Page footer */
.prop-page-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 500;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .prop-card { padding: 36px 32px; }
}

@media (max-width: 640px) {
  .prop-nav { padding: 16px 20px; }
  .prop-main { padding: 24px 16px 40px; }
  .prop-card { padding: 28px 24px; }
  .prop-header h1 { font-size: 1.35rem; }
  .prop-header p { font-size: 0.85rem; }
  .prop-form-row { grid-template-columns: 1fr; }
  .prop-success-actions { flex-direction: column; }
  .prop-success-btn { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .prop-nav { padding: 14px 16px; }
  .prop-nav .nav-brand span { display: none; }
  .prop-back-link { font-size: 0.82rem; }
  .prop-main { padding: 20px 12px 32px; }
  .prop-card { padding: 20px 16px; border-radius: 16px; }
  .prop-header { margin-bottom: 24px; }
  .prop-header h1 { font-size: 1.2rem; line-height: 1.3; }
  .prop-header p { font-size: 0.82rem; line-height: 1.5; }
  .prop-header-icon { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 14px; }
  .prop-form { gap: 16px; }
  .prop-field label { font-size: 0.82rem; }
  .prop-field input { padding: 11px 14px; font-size: 0.88rem; }
  .prop-hint { font-size: 0.72rem; }
  .prop-submit { padding: 14px 20px; font-size: 0.9rem; }
  .prop-success-icon { font-size: 2.8rem; }
  .prop-success h2 { font-size: 1.2rem; }
  .prop-success p { font-size: 0.85rem; }
  .prop-footer-link { font-size: 0.85rem; }
}

@media (max-width: 375px) {
  .prop-nav { padding: 12px 12px; }
  .prop-main { padding: 16px 8px 28px; }
  .prop-card { padding: 18px 14px; }
  .prop-header h1 { font-size: 1.1rem; }
  .prop-field input { padding: 10px 12px; font-size: 0.85rem; }
  .prop-page-footer { font-size: 0.75rem; padding: 18px 12px; }
}
