/* 
 * December Retreat: GRACE & GLORY
 * Gospel Labour Ministry Registration Website
 * Styling aligned with GLM official design language
 */

:root {
  --glm-red: #D32F2F;
  --glm-red-dark: #B71C1C;
  --glm-red-light: #FFEBEE;
  --glm-dark-wine: #2A0208;
  --glm-black: #111827;
  --glm-gray-bg: #F9FAFB;
  --glm-border: #E5E7EB;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFFFF;
  color: #1F2937;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F3F4F6;
}
::-webkit-scrollbar-thumb {
  background: #D32F2F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* Flyer Framing */
.flyer-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.flyer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(211, 47, 47, 0.2);
}

/* Buttons */
.btn-glm-red {
  background-color: #D32F2F;
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
}

.btn-glm-red:hover:not(:disabled) {
  background-color: #B71C1C;
  box-shadow: 0 10px 20px -5px rgba(211, 47, 47, 0.35);
  transform: translateY(-1px);
}

.btn-glm-red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Form Controls */
.form-input-glm {
  background-color: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  color: #111827;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.form-input-glm:hover {
  border-color: #D1D5DB;
}

.form-input-glm:focus {
  background-color: #FFFFFF;
  border-color: #D32F2F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.form-input-glm::placeholder {
  color: #9CA3AF;
}

/* Custom Radio Option Cards */
.radio-pill {
  border: 1.5px solid #E5E7EB;
  background-color: #F9FAFB;
  transition: all 0.2s ease;
  cursor: pointer;
}

.radio-pill:hover {
  border-color: #D1D5DB;
  background-color: #F3F4F6;
}

.radio-input:checked + .radio-pill {
  border-color: #D32F2F;
  background-color: #FEF2F2;
  color: #991B1B;
  box-shadow: 0 0 0 1px #D32F2F;
}

/* Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-custom {
  animation: spin 0.8s linear infinite;
}

/* Mobile responsive inputs */
@media (max-width: 640px) {
  .form-input-glm {
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }
}
