@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ipf-dark: #101820;
  --ipf-gold: #c9a24d;
  --ipf-gold-soft: #f8eed6;
  --ipf-bg: #f8f5ee;
  --ipf-border: #e5dac5;
  --ipf-text: #24313d;
  --ipf-muted: #667085;
  --ipf-danger: #b42318;
  --ipf-success: #067647;
}

.ipf-wrap,
.ipf-wrap * {
  box-sizing: border-box;
}

.ipf-wrap {
  font-family: Inter, Arial, sans-serif;
  color: var(--ipf-text);
  max-width: 1080px;
  margin: 0 auto;
}

.ipf-hero {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16,24,32,.96), rgba(36,44,50,.92)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1500&q=80");
  background-size: cover;
  background-position: center;
  margin-bottom: 22px;
  box-shadow: 0 22px 70px rgba(16,24,32,.15);
}

.ipf-logo {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  text-align: center;
  overflow: hidden;
}

.ipf-logo img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.ipf-logo span {
  color: #f9e3a3;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  line-height: 1.35;
}

.ipf-badge {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(201,162,77,.16);
  border: 1px solid rgba(201,162,77,.38);
  color: #f9e3a3;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.ipf-hero h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 45px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: #fff;
}

.ipf-hero p {
  margin: 0 0 12px;
  max-width: 850px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
}

.ipf-hero strong {
  color: #f9e3a3;
}

.ipf-form {
  background: #fff;
  border: 1px solid var(--ipf-border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 22px 70px rgba(16,24,32,.08);
}

.ipf-section {
  padding: 24px;
  border: 1px solid var(--ipf-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffdf8);
  margin-bottom: 20px;
}

.ipf-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ipf-section-head h3 {
  margin: 0;
  color: var(--ipf-dark);
  font-size: 22px;
  line-height: 1.2;
}

.ipf-section-head span {
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ipf-gold-soft);
  border: 1px solid #ead49c;
  color: #6c4b0c;
  font-size: 12px;
  font-weight: 800;
}

.ipf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.ipf-field {
  display: grid;
  gap: 8px;
}

.ipf-full {
  grid-column: 1 / -1;
}

.ipf-field label {
  font-size: 13px;
  font-weight: 800;
  color: #344054;
}

.ipf-field label em {
  color: var(--ipf-danger);
  font-style: normal;
}

.ipf-field input,
.ipf-field select,
.ipf-field textarea {
  width: 100%;
  border: 1px solid #d8cfbf;
  border-radius: 15px;
  padding: 14px 15px;
  background: #fffdf9;
  color: var(--ipf-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}

.ipf-field textarea {
  min-height: 116px;
  resize: vertical;
}

.ipf-field input:focus,
.ipf-field select:focus,
.ipf-field textarea:focus {
  border-color: var(--ipf-gold);
  box-shadow: 0 0 0 4px rgba(201,162,77,.15);
  background: #fff;
}

.ipf-field small {
  color: var(--ipf-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ipf-category-grid,
.ipf-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ipf-category-grid label {
  cursor: pointer;
  display: block;
  padding: 15px;
  border: 1px solid #ded4c2;
  border-radius: 17px;
  background: #fffdf9;
  transition: .2s ease;
}

.ipf-category-grid label:hover {
  border-color: var(--ipf-gold);
  transform: translateY(-1px);
}

.ipf-category-grid input {
  width: auto;
  margin-right: 8px;
  accent-color: var(--ipf-gold);
}

.ipf-category-grid strong {
  display: block;
  color: var(--ipf-dark);
  margin: 6px 0 3px;
}

.ipf-category-grid small {
  display: block;
  color: var(--ipf-muted);
  line-height: 1.45;
}

.ipf-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid #ded4c2;
  border-radius: 14px;
  background: #fffdf9;
  font-size: 13px;
  font-weight: 700;
}

.ipf-checks input {
  width: auto;
  accent-color: var(--ipf-gold);
}

.ipf-branch {
  display: none;
}

.ipf-branch.is-active {
  display: block;
}

.ipf-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 25px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #a87822, #d5b66b);
  box-shadow: 0 14px 30px rgba(168,120,34,.28);
  transition: .22s ease;
}

.ipf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(168,120,34,.35);
}

.ipf-alert {
  max-width: 1080px;
  margin: 0 auto 18px;
  padding: 15px 17px;
  border-radius: 16px;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  font-weight: 700;
}

.ipf-alert-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: var(--ipf-success);
}

.ipf-alert-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--ipf-danger);
}

.ipf-client-error {
  margin-top: 8px;
  color: var(--ipf-danger);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 800px) {
  .ipf-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .ipf-form,
  .ipf-section {
    padding: 20px;
  }

  .ipf-grid,
  .ipf-category-grid,
  .ipf-checks {
    grid-template-columns: 1fr;
  }

  .ipf-section-head {
    display: block;
  }

  .ipf-section-head span {
    margin-top: 10px;
  }

  .ipf-submit {
    width: 100%;
  }
}
