﻿:root { --blue: #3a5aa5; --blue-dark: #2f4a8a; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; background: #fff; color: #222; }
.hidden { display: none !important; }

.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding-bottom: 20vh; }
.landing-logo { height: 80px; }
.welcome { color: var(--blue); font-weight: 600; font-size: 18px; }

.pill-btn { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 12px 32px; font-size: 16px; font-family: inherit; cursor: pointer; }
.pill-btn:hover { background: var(--blue-dark); }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; border-bottom: 1px solid #e5e5e5; }
.site-header img { height: 56px; }
.site-header span { color: var(--blue); font-weight: 600; }
.hero { background: linear-gradient(rgba(20,25,45,.55), rgba(20,25,45,.55)), url(img/hero.png) center/cover; color: #fff; text-align: center; padding: 110px 24px; font-size: 28px; line-height: 1.4; }
.hero p { max-width: 820px; margin: 0 auto; }

.content { max-width: 1000px; margin: 40px auto 80px; padding: 0 24px; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; color: #222; }
.app-info { display: flex; gap: 32px; align-items: flex-start; }
.app-mark { width: 52px; margin-top: 6px; }
.app-info h1 { font-size: 56px; font-weight: 600; line-height: 1.1; margin-bottom: 12px; }
.app-info p { font-size: 18px; line-height: 1.6; }

#registration-form { max-width: 520px; margin: 32px auto 0; }
#registration-form label { display: block; margin: 22px 0 8px; font-size: 18px; }
#registration-form input, #registration-form textarea { width: 100%; padding: 16px 18px; border: 0; background: #f0f0f0; font: inherit; font-size: 16px; }
#registration-form textarea { height: 114px; resize: vertical; }
#registration-form input:focus, #registration-form textarea:focus { outline: 2px solid var(--blue); }
.btn-row { text-align: center; margin-top: 28px; }
.pill-btn.big { padding: 22px 28px; font-size: 18px; font-family: inherit; }

.contributors { display: block; width: 100%; max-width: 780px; margin: 70px auto 0; }
.supporting { max-width: 960px; margin: 60px auto 0; }
.supporting h1 { font-size: 64px; font-weight: 600; margin-bottom: 40px; color: #000; }
.supporting p { font-size: 19px; line-height: 1.7; margin-bottom: 16px; }
.support-btn { display: inline-block; background: #229a1f; color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; padding: 18px 44px; border-radius: 3px; margin: 14px 0 12px; }
.small-note { margin-top: 0; }
.thanks { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px 24px 15vh; text-align: center; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; }
.thanks h2 { color: var(--blue); font-size: 32px; font-weight: 600; }
.thanks p { font-size: 18px; color: #333; }
.invoice-wrap { max-width: 860px; margin: 0 auto; padding: 12px 16px; }
.invoice-box { position: relative; width: 100%; max-width: 860px; margin: 0 auto; box-shadow: 0 2px 16px rgba(0,0,0,.18); }
#invoice-canvas { display: block; width: 100%; height: auto; }
.pay-btn { position: absolute; left: 50%; top: 71%; transform: translateX(-50%); white-space: nowrap; padding: 22px 40px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-size: 18px; font-weight: 400; cursor: pointer; }
.pay-btn:hover { background: var(--blue-dark); }

.payment-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.payment-modal.hidden { display: none !important; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); }
.modal-content { position: relative; background: #fff; border-radius: 8px; padding: 40px; max-width: 500px; width: 90%; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); }
.modal-content h2 { color: var(--blue); font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 32px; color: #999; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: #333; }

#payment-form label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: #222; }
#payment-form input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; background: #f9f9f9; font: inherit; font-size: 14px; border-radius: 4px; }
#payment-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-row { display: flex; gap: 16px; }
.form-col { flex: 1; }
.form-col label { margin: 16px 0 8px; }
.form-col input { width: 100%; }

#payment-form .pill-btn { width: 100%; margin-top: 24px; }

.otp-message { color: #666; font-size: 14px; margin-bottom: 24px; line-height: 1.5; }

#otp-form label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: #222; }
#otp-form input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; background: #f9f9f9; font: inherit; font-size: 14px; border-radius: 4px; text-align: center; letter-spacing: 4px; }
#otp-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
#otp-form .pill-btn { width: 100%; margin-top: 24px; }

.processing-content { text-align: center; }
.card-logo { margin-bottom: 24px; }
.card-logo img { height: 60px; object-fit: contain; }
#card-type-text { font-size: 18px; font-weight: 600; color: var(--blue); margin-bottom: 24px; }
.processing-text { color: #666; font-size: 14px; margin-top: 24px; }

.loader {
  margin: 24px auto;
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
