/* ===== HEART-DONATE FORM STYLES ===== */

:root {
  --heart-primary: #e91e63;
  --heart-light: #f06292;
  --heart-dark: #c2185b;
  --heart-gradient: linear-gradient(135deg, #c2185b 0%, #e91e63 50%, #f06292 100%);
  --muted: #6b7280;
}

/* ===== CONTAINER ===== */
.heart-donate-container {
  max-width: 960px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 48px 44px;
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(233, 30, 99, 0.1);
}

body.dark-mode .heart-donate-container {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(233, 30, 99, 0.15);
}

.heart-donate-container h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--heart-dark);
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.heart-donate-container .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 0.97rem;
}

/* ===== FORM SECTIONS ===== */
.form-section {
  margin-bottom: 32px;
  padding: 28px;
  background: rgba(252, 228, 236, 0.2);
  border-radius: 14px;
  border: 1px solid rgba(233, 30, 99, 0.1);
  position: relative;
  overflow: hidden;
}

body.dark-mode .form-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(233, 30, 99, 0.12);
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--heart-gradient);
  border-radius: 4px 0 0 4px;
}

.form-section h3 {
  color: var(--heart-dark);
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(233, 30, 99, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

/* ===== FORM ROWS ===== */
.form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}

.form-row.full {
  flex-direction: column;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 7px;
  color: #374151;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

body.dark-mode .form-group label {
  color: rgba(255, 255, 255, 0.8);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.form-group input[type="date"],
.form-group input[type="time"] {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.97rem;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  color: #1a1a2e;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background-color: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

body.dark-mode .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e2e8f0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

body.dark-mode .form-group select option {
  background-color: #0f172a;
  color: #e2e8f0;
}

html.page-is-entering body.heart-page::before {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #880e4f 0%, #c2185b 50%, #e91e63 100%);
}

html.page-is-entering body.heart-page::after {
  border: 6px solid rgba(255, 255, 255, 0.16);
  border-top-color: #f06292;
  border-right-color: #e91e63;
  box-shadow: 0 0 30px rgba(233, 30, 99, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--heart-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== LOCATION ===== */
.location-btn-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.location-btn {
  width: 100%;
  background: var(--heart-gradient);
  color: white;
  border: none;
  padding: 13px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.25);
}

.location-btn:hover {
  background: linear-gradient(135deg, #880e4f, #c2185b);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

/* ===== LOCATION STATUS ===== */
.location-status {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
  animation: fadeSlide 0.25s ease;
  box-sizing: border-box;
}

.location-status.info {
  background: #fff8e1;
  color: #e67e00;
  border-left: 4px solid #f59e0b;
  display: block;
}

.location-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #00c853;
  display: block;
}

.location-status.error {
  background: #fce4ec;
  color: #c62828;
  border-left: 4px solid #ff3d00;
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FILE UPLOAD ===== */
.file-input-wrapper {
  position: relative;
  border: 2px dashed rgba(233, 30, 99, 0.35);
  border-radius: 14px;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(252, 228, 236, 0.15);
  flex-direction: column;
  gap: 10px;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-input-wrapper:hover {
  border-color: var(--heart-primary);
  background: rgba(233, 30, 99, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.1);
}

.file-input-wrapper.dragover {
  border-color: var(--heart-dark);
  background: rgba(233, 30, 99, 0.08);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.15) inset;
}

.file-input-label {
  color: var(--heart-primary);
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 0.97rem;
  pointer-events: none;
}

.file-input-label i {
  font-size: 1.8rem;
  opacity: 0.75;
}

.file-name {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
  pointer-events: none;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
  background: var(--heart-gradient);
  color: white;
  padding: 14px 40px;
  border-radius: 9999px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
  min-width: 200px;
}

.submit-btn i {
  font-size: 1rem;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #880e4f, #c2185b);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .form-row {
    flex-direction: column;
  }

  .heart-donate-container {
    margin: 24px 16px;
    padding: 28px 20px;
  }

  .form-section {
    padding: 20px 16px;
  }
}
