/* Campaign Website Styles */
:root {
  --primary-yellow: #ffcb0d;
  --secondary-yellow: #ffdd62;
  --primary-dark: #1a3a52;
  --secondary-dark: #2c5aa0;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-light: #666;
}

/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navbar */
.navbar {
  background-color: var(--primary-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand:hover {
    color: var(--primary-light);
}

.navbar-brand small {
  font-size: 0.7rem;
  color: #000;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}


.navbar-nav .nav-link.active {
  color: var(--primary-dark);
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--text-light);
}

.btn-donate {
  background-color: var(--primary-dark);
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.5rem 1.5rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 0, 40, 0.3);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffdd62 0%, #ffe480 100%);
  color: black;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.hero .candidate-photo {
  max-width: 400px;
  margin: 2rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero .candidate-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Sections */
.section {
  padding: 4rem 2rem;
}

.section-light {
  background-color: var(--light-bg);
}

.section h2 {
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-yellow);
  margin: 1rem auto 0;
}

.section h3 {
  color: var(--secondary-dark);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 10px 10px 0 0;
}

.card-title {
  color: var(--primary-dark);
  font-weight: bold;
}

/* Donation Tiers */
.donation-tier {
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.donation-tier:hover {
  border-color: var(--primary-yellow);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.donation-tier h4 {
  color: var(--primary-dark);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.donation-tier .amount {
  font-size: 2.5rem;
  color: var(--primary-yellow);
  font-weight: bold;
  margin: 1rem 0;
}

.donation-tier .description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Form Styles */
.form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 2rem;
  margin-top: auto;
}

footer h5 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
  font-weight: bold;
}

footer p {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-dark);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: var(--primary-yellow);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.footer-divider {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin: 2rem 0;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .btn-donate {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .hero .candidate-photo {
    max-width: 250px;
  }
}

/* Donation Methods Section */
.donation-methods {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.donation-options {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donation-option {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.donation-option:hover {
  border-color: var(--primary-yellow);
  background-color: #fafaf8;
}

.donation-option input[type="radio"]:checked ~ label,
.donation-option input[type="radio"]:checked + label {
  color: var(--primary-dark);
  font-weight: 600;
}

.donation-option input[type="radio"] {
  margin-top: 0.2rem;
  cursor: pointer;
}

.donation-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
}

.donation-content {
  flex: 1;
  min-width: 0;
}

.donation-method-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* E-Transfer Steps */
.etransfer-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.etransfer-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-content h6 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.step-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.step-content li {
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

/* Email Box */
.email-box {
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin: 0.5rem 0;
}

.email-box p {
  margin: 0;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

/* QR Code Placeholder */
.qr-code-placeholder {
  width: 150px;
  max-width: 100%;
  margin: 1rem 0;
}

.qr-code-placeholder svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Step 2 Layout - Email and QR Code Side-by-Side */
.step-2-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.email-section {
  flex: 1;
  min-width: 0;
}

.qr-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-section p {
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .step-2-layout {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .qr-section {
    align-items: center;
  }
}

@media (max-width: 992px) {
  .donation-methods {
    flex-direction: column;
    gap: 1rem;
  }

  .donation-options {
    flex: 1;
    flex-direction: row;
    width: 100%;
  }

  .donation-option {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .donation-options {
    flex-direction: column;
  }

  .etransfer-step {
    gap: 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .email-box {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .qr-code-placeholder {
    width: 120px;
  }

  .step-2-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .qr-section {
    align-items: center;
  }
}

/* Utilities */
.highlight-yellow {
  color: var(--primary-yellow);
}

.text-dark-primary {
  color: var(--primary-dark);
}

.bg-yellow-accent {
  background-color: var(--primary-yellow);
  color: var(--primary-dark);
}
