/* ===========================================
   HITT Family Reunion - Main Stylesheet
   =========================================== */

/* CSS Variables */
:root {
  --primary-green: #4a7c59;
  --light-green: #6ba67f;
  --dark-green: #2d5a3d;
  --accent-green: #8bc34a;
  --primary-gradient: linear-gradient(135deg, #4a7c59 0%, #6ba67f 100%);
}

/* Base Styles */
body {
  background: url('../images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  font-size: 1.125rem;
  position: relative;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

/* Main Card */
.main-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.6s ease-out;
  overflow: hidden;
  border: 3px solid rgba(74, 124, 89, 0.8);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Header */
.card-header-custom {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.97) 0%, rgba(107, 166, 127, 0.97) 100%);
  backdrop-filter: blur(15px);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border: none;
}

.card-header-custom h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card-header-custom .subtitle {
  font-size: 1.5rem;
  opacity: 0.95;
  font-weight: 300;
}

.tree-icon {
  font-size: 4rem;
  color: white;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.card-header-custom .tree-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Card Body */
.card-body-custom {
  padding: 3rem 2.5rem;
}

/* Event Details Section */
.event-details {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.95) 0%, rgba(107, 166, 127, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: white;
  padding: 2.5rem 2rem;
  margin: -1rem -1rem 2rem -1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.event-details h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.event-details .detail-item {
  font-size: 1.35rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.event-details .detail-item i {
  font-size: 1.75rem;
}

.event-details .location-note {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-style: italic;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

/* Calendar Button */
.btn-calendar {
  font-size: 1.25rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  background: white;
  color: var(--primary-green);
  border: 2px solid white;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-calendar:hover {
  background: var(--dark-green);
  color: white;
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-calendar i {
  font-size: 1.5rem;
}

/* Form Styles */
.form-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.optional-tag {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6c757d;
  font-style: italic;
}

/* Attendance Toggle */
.attendance-toggle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  border: 2px solid #e0e0e0;
}

.form-check {
  margin: 0;
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  cursor: pointer;
  border: 2px solid #dee2e6;
}

.form-check-input:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.form-check-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.25rem rgba(74, 124, 89, 0.15);
}

.form-check-label {
  font-size: 1.15rem;
  font-weight: 500;
  margin-left: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.form-check-inline {
  margin-right: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-check-inline:hover {
  background: rgba(74, 124, 89, 0.05);
}

.form-control {
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.25rem rgba(74, 124, 89, 0.15);
}

.form-control:hover {
  border-color: var(--primary-green);
}

.input-group-text {
  font-size: 1.25rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px 0 0 12px;
  padding: 1rem 1.25rem;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}

/* Submit Button */
.btn-submit {
  font-size: 1.5rem;
  padding: 1.25rem 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(74, 124, 89, 0.4);
}

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

.btn-submit:disabled {
  background: #6c757d;
  transform: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner-border-custom {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 3px;
}

/* Alert Messages */
.alert-custom {
  font-size: 1.25rem;
  padding: 1.25rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Questions Section */
.questions-section {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(253, 230, 138, 0.98) 100%);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(251, 191, 36, 0.9);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: center;
  animation: pulse 2s infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5); }
}

.questions-section h3 {
  color: #92400e;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.questions-section p {
  color: #78350f;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.questions-section .contact-btn {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  background: transparent;
  transition: all 0.3s ease;
}

.questions-section .contact-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 124, 89, 0.3);
}

/* Card Footer */
.card-footer-custom {
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: #495057;
  border-top: 2px solid rgba(233, 236, 239, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-header-custom h1 {
    font-size: 2.5rem;
  }
  
  .card-header-custom .subtitle {
    font-size: 1.25rem;
  }
  
  .card-body-custom {
    padding: 2rem 1.5rem;
  }
  
  .form-label {
    font-size: 1.125rem;
  }
  
  .form-control {
    font-size: 1.125rem;
  }
  
  .btn-submit {
    font-size: 1.25rem;
  }

  .event-details h2 {
    font-size: 2rem;
  }

  .event-details .detail-item {
    font-size: 1.15rem;
  }

  .questions-section h3 {
    font-size: 1.5rem;
  }

  .questions-section .contact-btn {
    font-size: 1.125rem;
    padding: 0.625rem 1.25rem;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .btn-calendar {
    font-size: 1.125rem;
    padding: 0.75rem 1.25rem;
  }
}

