:root {
  --rfp-ink: #111111;
  --rfp-muted: #555555;
  --rfp-line: #e8e8e8;
  --rfp-line-dark: #d0d0d0;
  --rfp-soft: #fafafa;
  --rfp-soft-strong: #e8e8e8;
  --rfp-accent: #80e5eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--rfp-ink);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.rfp-page,
.rfp-page button,
.rfp-page input,
.rfp-page textarea,
.rfp-page select,
.rfp-page label,
.rfp-page p,
.rfp-page h1,
.rfp-page h2,
.rfp-page h3,
.rfp-page h4,
.rfp-page a,
.rfp-page span,
.rfp-page div {
  font-family: "Poppins", sans-serif;
}

.rfp-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 90px;
}

.rfp-page-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rfp-ink);
}

.rfp-page-sub {
  max-width: 620px;
  margin: 0 0 40px;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--rfp-muted);
}

.rfp-section {
  margin-bottom: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.rfp-section-title {
  padding: 12px 20px;
  background: var(--rfp-soft-strong);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #222222;
}

.rfp-row {
  display: flex;
  align-items: flex-start;
  border-top: 1px solid var(--rfp-line);
}

.rfp-row:first-of-type {
  border-top: none;
}

.rfp-label {
  display: flex;
  align-items: center;
  width: 220px;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--rfp-soft);
  border-right: 1px solid var(--rfp-line);
  font-size: 0.82rem;
  color: #333333;
}

.rfp-label .req {
  margin-left: 2px;
  color: #cc0000;
}

.rfp-field {
  flex: 1;
  padding: 10px 16px;
}

.rfp-field input[type="text"],
.rfp-field input[type="email"],
.rfp-field input[type="tel"],
.rfp-field input[type="date"],
.rfp-field textarea,
.rfp-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rfp-line-dark);
  border-radius: 6px;
  font-size: 0.83rem;
  color: #222222;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.rfp-field input:focus,
.rfp-field textarea:focus,
.rfp-field select:focus {
  border-color: var(--rfp-accent);
}

.rfp-field textarea {
  min-height: 90px;
  resize: vertical;
}

.rfp-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
}

.rfp-services label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #333333;
  cursor: pointer;
}

.rfp-services input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--rfp-accent);
}

.rfp-declaration-note {
  padding: 14px 20px;
  border-top: 1px solid var(--rfp-line);
  background: var(--rfp-soft);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #444444;
}

.rfp-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.btn-rfp-submit {
  padding: 13px 48px;
  border: 0;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.btn-rfp-submit:hover {
  background: #333333;
}

.btn-rfp-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rfp-note {
  font-size: 0.78rem;
  color: #888888;
}

.form-success {
  display: none;
  padding: 80px 20px;
  text-align: center;
}

.form-success .success-icon {
  margin-bottom: 16px;
  font-size: 3rem;
}

.form-success h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rfp-ink);
}

.form-success p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--rfp-muted);
}

.budget-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.currency-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.currency-btn {
  padding: 7px 10px;
  border: 1px solid var(--rfp-line-dark);
  border-radius: 6px;
  background: #f5f5f5;
  color: #555555;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.currency-btn.active {
  background: var(--rfp-accent);
  border-color: #5cd6de;
  color: #111111;
}

.currency-btn:hover:not(.active) {
  border-color: var(--rfp-accent);
  background: rgba(128, 229, 235, 0.15);
}

.budget-input-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.budget-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--rfp-line-dark);
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.budget-input-wrap:focus-within {
  border-color: var(--rfp-accent);
}

.budget-symbol {
  min-width: 28px;
  padding: 8px 10px;
  border-right: 1px solid var(--rfp-line-dark);
  background: #f5f5f5;
  color: #444444;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
}

#budget-display {
  width: 100%;
  min-width: 0;
  padding: 8px 10px 8px 14px !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  background: #ffffff;
  color: #222222;
  font-size: 0.82rem;
}

.budget-hint {
  margin: 5px 0 0;
  color: #aaaaaa;
  font-size: 0.72rem;
  line-height: 1;
}

.rfp-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.rfp-status[data-state="error"] {
  color: #b42318;
}

.rfp-status[data-state="success"] {
  color: #13795b;
}

@media (max-width: 620px) {
  .rfp-page {
    padding: 32px 16px 60px;
  }

  .rfp-page-title {
    font-size: 1.3rem;
  }

  .rfp-row {
    flex-direction: column;
  }

  .rfp-label {
    width: 100%;
    min-width: unset;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid var(--rfp-line);
    background: #f4f4f4;
    font-weight: 600;
  }

  .rfp-field {
    width: 100%;
    padding: 12px 16px;
  }

  .rfp-services {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .rfp-services label {
    white-space: normal;
    font-size: 0.85rem;
  }

  .rfp-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-rfp-submit {
    width: 100%;
    padding: 14px;
  }
}
