/* ============================================
   CONTACT PAGE Styles
   ============================================ */
/* Page hero styles are now in global.css */

/* --- Contact Layout --- */
.contact-section { padding: 100px 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 32px;
}

/* --- Form Styles --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1.5px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgb(25,75,70);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 75, 70, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: rgb(25,75,70);
}

.btn-submit {
  align-self: flex-start;
  padding: 16px 48px;
}

/* --- Contact Info Sidebar --- */
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.info-card .eyebrow {
  margin-bottom: 28px;
}

.info-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-block h4 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.info-value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgb(25,75,70);
  margin-bottom: 4px;
}

.info-value:hover {
  color: rgb(202,80,51);
}

.info-block p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.info-image {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.info-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* --- Donate Fields (conditional) --- */
.donate-fields {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.donate-fields.active {
  max-height: 400px;
  opacity: 1;
}

.donate-fields-inner {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1.5px solid rgba(25,75,70,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donate-fields-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(25,75,70);
  letter-spacing: 0.02em;
}

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amount-btn {
  padding: 10px 22px;
  border: 1.5px solid rgba(25,75,70,0.3);
  border-radius: var(--radius-sm);
  background: #fff;
  color: rgb(25,75,70);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover {
  background: rgba(25,75,70,0.06);
  border-color: rgb(25,75,70);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 75, 70, 0.15);
}

.amount-btn.selected {
  background: rgb(25,75,70);
  color: #fff;
  border-color: rgb(25,75,70);
  box-shadow: 0 2px 12px rgba(25, 75, 70, 0.3);
}

.custom-amount {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-amount label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
}

.custom-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input-wrap:focus-within {
  border-color: rgb(25,75,70);
  box-shadow: 0 0 0 3px rgba(25, 75, 70, 0.1);
}

.currency-prefix {
  padding: 12px 14px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9375rem;
  border-right: 1.5px solid var(--gray-200);
  user-select: none;
}

.custom-input-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: var(--gray-800);
  outline: none;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .donate-amounts {
    gap: 8px;
  }
  .amount-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* --- Success message --- */
.form-success {
  padding: 24px;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--success);
  margin-bottom: 8px;
}

/* --- Final CTA (styles now in global.css) --- */

/* --- Responsive --- */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
}
