/* Campaign Grant Form styles */
:root {
  --cgf-bg: #f2f3f7;
  --cgf-card: #ffffff;
  --cgf-text: #000957;
  --cgf-muted: #475569;
  --cgf-line: #dbeafe;
  --cgf-accent: #000957;
  --cgf-danger: #b91c1c;
  --cgf-success: #15803d;
  --cgf-radius: 14px;
}

.cgf-wrap {
  background: transparent;
  padding: 18px 12px;
  border-radius: var(--cgf-radius);
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.cgf-card {
  margin: 0 auto;
  background: var(--cgf-card);
  border-radius: var(--cgf-radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  padding: 22px 22px 10px;
}

.cgf-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--cgf-text);
}

.cgf-subtitle {
  margin: 0 0 18px;
  color: var(--cgf-muted);
  font-size: 14px;
}

.cgf-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0 16px;
  font-size: 14px;
}

.cgf-alert ul {
  margin: 8px 0 0 18px;
}

.cgf-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.cgf-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.cgf-alert--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.cgf-form {
  display: block;
}

.cgf-section {
  padding: 14px 0 10px;
  border-top: 1px solid #eef2ff;
  margin-top: 20px;
}

.cgf-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--cgf-text);
}

.cgf-field {
  margin: 20px 0;
}

.cgf-field label {
  display: block;
  font-weight: 600;
  color: var(--cgf-text);
  font-size: 13px;
  margin-bottom: 6px;
}

.cgf-req {
  color: var(--cgf-danger);
  font-weight: 700;
}

.cgf-help {
  margin: 6px 0 0;
  color: var(--cgf-muted);
  font-size: 12px;
}

.cgf-field input[type="text"],
.cgf-field input[type="email"],
.cgf-field input[type="url"],
.cgf-field input[type="date"],
.cgf-field textarea {
  width: 100%;
  border: 2px solid #e0e0e0;
  outline: none;
  background: #fff;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--cgf-text);
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 0 0 3px rgba(0, 9, 87, 0.12);

}

.cgf-field input[type="date"] {
  width: 30% !important;
}


.cgf-field input[type="text"]:focus,
.cgf-field input[type="email"]:focus,
.cgf-field input[type="url"]:focus,
.cgf-field input[type="date"]:focus,
.cgf-field textarea:focus {
  border-color: var(--cgf-accent);
  box-shadow: 0 0 0 3px rgba(1, 20, 189, 0.3);
}

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

/* .cgf-field input:focus,
.cgf-field textarea:focus{
  border-bottom-color: var(--cgf-accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
} */

.cgf-field--radios .cgf-radios {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.cgf-field--radios label {
  font-weight: 500;
  margin: 0;
}

.cgf-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.cgf-field--checkbox input {
  margin-top: 3px;
}

.cgf-actions {
  padding: 16px 0 8px;
  border-top: 1px solid #eef2ff;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.cgf-submit {
  background: var(--cgf-accent);
  color: #fff;
  border: 2px solid var(--cgf-accent); 
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 9, 87, 0.25);
  min-width: 200px;
  transition: all 0.2s ease;
}

.cgf-submit:hover {
  background: #001a6b;
  box-shadow: 0 12px 28px rgba(0, 9, 87, 0.3);
  transform: translateY(-1px);
}

.cgf-back {
  background: var(--cgf-accent);
  color: #fff;
  border: 2px solid var(--cgf-accent);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 9, 87, 0.25);
  min-width: 200px;
  transition: all 0.2s ease;
}

.cgf-back:hover {
  background: #001a6b;
  box-shadow: 0 12px 28px rgba(0, 9, 87, 0.3);
  transform: translateY(-1px);
}

.cgf-reset {
  background: #fff;
  color: var(--cgf-text);
  border: 2px solid var(--cgf-accent);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-width: 200px;
  transition: all 0.2s ease;
}

.cgf-reset:hover {
  background: #f2f3f7;
  transform: translateY(-1px);
}

@media (max-width: 520px) {

  .cgf-card {
    padding: 18px 14px 8px;
  }

  .cgf-wrap {
    padding: 0;
  }

  .cgf-field input[type="text"],
  .cgf-field input[type="email"],
  .cgf-field input[type="url"],
  .cgf-field input[type="date"],
  .cgf-field textarea {
    border: 1px solid #e0e0e0;
    box-shadow: none;
  }

  .cgf-field input[type="date"] {
    width: 100% !important;
  }
}