/* Public Donation Page - Registrar Style Copy (No Sidebar/Navbar) */

/* Mobile-first base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Shell - No Sidebar */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Main Content - Mobile First */
.main-content {
  flex: 1;
  padding: 1rem;
  margin-bottom: 60px; /* Space for mobile action button */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header */
.page-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-blue);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Progress Section */
.progress-section {
  padding: 1rem;
}

/* Cards - Mobile First */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Forms - Mobile Optimized */
.form-section {
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus,
.form-select:focus {
  border-color: #0a6286;
  box-shadow: 0 0 0 0.2rem rgba(10, 98, 134, 0.1);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* Quick Amount Buttons */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quick-amount-btn {
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.quick-amount-btn .checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    color: #0a6286;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
  border-color: #0a6286;
  background: var(--gray-50);
}

.quick-amount-btn.active {
  border-color: #0a6286;
  background: #0a6286;
  color: white;
  box-shadow: 0 4px 12px rgba(10, 98, 134, 0.2);
}

.quick-amount-btn.active .checkmark {
    opacity: 1;
    transform: scale(1);
    color: white;
}

.quick-amount-value {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.quick-amount-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.segmented-control .form-check-input {
    display: none;
}

.segmented-control .form-check-label {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.segmented-control .form-check-input:checked + .form-check-label {
    background: #0a6286;
    color: white;
    box-shadow: 0 4px 12px rgba(10, 98, 134, 0.2);
}

/* Submit Button - Mobile Optimized */
.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0a6286, #1e4d5c);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e2ca18, #ffd700);
  color: #1e4d5c;
  box-shadow: 0 8px 20px rgba(226, 202, 24, 0.3);
}

/* Tablet Styles */
@media (min-width: 768px) {  
  .main-content {
    padding: 1.5rem;
    margin-bottom: 0;
  }
  
  /* Grid adjustments */
  .quick-amounts {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Form in card layout */
  .registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .form-section {
    grid-column: span 2;
  }
  
  .form-section.half {
    grid-column: span 1;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .main-content {
    padding: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .quick-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card {
  animation: slideIn 0.3s ease-out;
}

/* Loading States */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Animation */
.success-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  text-align: center;
  animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Form Validation States */
.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

/* Progress Bar Override */
.progress-bar {
  background: linear-gradient(135deg, #e2ca18, #ffd700) !important;
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Input Group Styling */
.input-group-text {
  background: var(--gray-100);
  border-color: var(--gray-200);
  font-weight: 600;
  color: #0a6286;
}

/* Form Check Styling */
.form-check-input:checked {
  background-color: #0a6286;
  border-color: #0a6286;
}

/* Text Utilities */
.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--gray-600) !important;
}

/* Navigation Section */
.navigation-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

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

/* Home Button */
.btn-home {
    background: linear-gradient(135deg, #0a6286, #1e4d5c);
    color: white;
}

.btn-home:hover {
    background: linear-gradient(135deg, #e2ca18, #ffd700);
    color: #1e4d5c;
}

/* Projector Button */
.btn-projector {
    background: linear-gradient(135deg, #e2ca18, #ffd700);
    color: #1e4d5c;
}

.btn-projector:hover {
    background: linear-gradient(135deg, #0a6286, #1e4d5c);
    color: white;
}

/* Floor View Button */
.btn-floor {
    background: linear-gradient(135deg, #1e4d5c, #0a6286);
    color: white;
}

.btn-floor:hover {
    background: linear-gradient(135deg, #e2ca18, #ffd700);
    color: #1e4d5c;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-buttons {
        flex-direction: row;
        max-width: 600px;
        gap: 1.5rem;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .nav-buttons {
        max-width: 700px;
        gap: 2rem;
    }
    
    .nav-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .navigation-section {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .nav-btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
}

/* ===== HERO INSTRUCTIONS SECTION ===== */
.instructions-hero {
    margin-bottom: 2rem;
}

.hero-card {
    background: linear-gradient(135deg, #1e4d5c 0%, #0a6286 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10, 98, 134, 0.2);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-icon i {
    font-size: 1.5rem;
    color: white;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.option-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0a6286, #1e4d5c);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.option-card.option-pledge::before {
    background: linear-gradient(180deg, #e2ca18, #ffd700);
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.option-card:hover::before {
    transform: scaleY(1);
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.option-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background: linear-gradient(135deg, #0a6286, #1e4d5c);
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(10, 98, 134, 0.2);
}

.option-pledge .option-icon {
    background: linear-gradient(135deg, #e2ca18, #ffd700);
    box-shadow: 0 4px 8px rgba(226, 202, 24, 0.2);
    color: #1e4d5c;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.option-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.option-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateX(4px);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a6286, #1e4d5c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(10, 98, 134, 0.2);
}

.option-pledge .step-number {
    background: linear-gradient(135deg, #e2ca18, #ffd700);
    box-shadow: 0 2px 4px rgba(226, 202, 24, 0.2);
    color: #1e4d5c;
}

.step-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.hero-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.contact-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    text-align: center;
}

.contact-notice i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BANK DETAILS SECTION ===== */
.bank-details-section {
    margin-bottom: 2rem;
}

.bank-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
    max-width: 700px;
    margin: 0 auto;
}

.bank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.bank-header {
    background: linear-gradient(135deg, #e2ca18 0%, #ffd700 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bank-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
}

.bank-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bank-icon i {
    font-size: 1.5rem;
    color: #1e4d5c;
}

.bank-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e4d5c;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bank-subtitle {
    font-size: 0.9rem;
    color: rgba(30, 77, 92, 0.8);
    margin-bottom: 0;
}

.bank-content {
    padding: 2rem;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bank-detail-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.bank-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0a6286, #1e4d5c);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.bank-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.bank-detail-item:hover::before {
    transform: scaleY(1);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.5px;
    word-break: break-all;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 576px) {
    .hero-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .donation-options {
        padding: 0 2rem 2rem;
    }
}

@media (min-width: 768px) {
    .donation-options {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .bank-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-footer {
        padding: 1.25rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-header {
        padding: 2.5rem 2.5rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .donation-options {
        padding: 0 2.5rem 2.5rem;
        gap: 2rem;
    }
    
    .bank-content {
        padding: 2.5rem;
    }
    
    .bank-details-grid {
        max-width: 700px;
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .donation-options {
        padding: 0 1rem 1.5rem;
        gap: 1rem;
    }
    
    .option-card {
        padding: 1.25rem;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .option-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .bank-header {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .bank-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .bank-content {
        padding: 1.5rem 1rem;
    }
    
    .bank-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-footer {
        padding: 1rem;
    }
    
    .contact-notice {
        flex-direction: column;
        gap: 0.5rem;
    }
}