/* ============================================
   SPONSORSHIP SYSTEM STYLES
   Matching GiftMatch360 subscribe.html design
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
}

/* ============================================
   SPONSOR INFO PAGE (sponsor.html)
   ============================================ */

/* Header */
.header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    padding: 20px 0;
    border-bottom: 4px solid #C5A572;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.header nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #C5A572;
}

.btn-primary {
    background: #C5A572;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #b89556;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: #E8DCC8;
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    background: #C5A572;
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #b89556;
}

/* Stats Section */
.stats-section {
    padding: 60px 20px;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #C5A572;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #E8DCC8;
}

/* How It Works */
.how-it-works {
    padding: 60px 20px;
    background: #f8f9fa;
}

.how-it-works h2,
.sponsorship-options h2,
.whats-included h2,
.pricing-calculator h2,
.impact-stories h2,
.faq-section h2,
.cta-section h2 {
    text-align: center;
    color: #1E3A5F;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 600;
    border-bottom: 3px solid #C5A572;
    display: inline-block;
    padding-bottom: 12px;
    width: 100%;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    color: #C5A572;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-card h3 {
    color: #1E3A5F;
    margin-bottom: 15px;
    font-size: 22px;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Sponsorship Options */
.sponsorship-options {
    padding: 60px 20px;
    background: white;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.option-card {
    background: white;
    border: 3px solid #E8DCC8;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #C5A572;
}

.option-card.featured {
    border-color: #C5A572;
    border-width: 4px;
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #C5A572;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.option-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.option-card h3 {
    color: #1E3A5F;
    font-size: 28px;
    margin-bottom: 15px;
}

.option-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.option-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.option-card ul li {
    padding: 10px 0;
    color: #333;
    border-bottom: 1px solid #E8DCC8;
}

.option-card ul li:before {
    content: "✓ ";
    color: #C5A572;
    font-weight: bold;
    margin-right: 10px;
}

.btn-option {
    display: inline-block;
    background: #1E3A5F;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-option:hover {
    background: #2a5298;
    transform: scale(1.05);
}

.btn-option.btn-featured {
    background: #C5A572;
}

.btn-option.btn-featured:hover {
    background: #b89556;
}

/* What's Included */
.whats-included {
    padding: 60px 20px;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #C5A572;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #1E3A5F;
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Calculator */
.pricing-calculator {
    padding: 60px 20px;
    background: white;
}

.calculator-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 2px solid #E8DCC8;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calculator-row {
    margin-bottom: 25px;
}

.calculator-row label {
    display: block;
    margin-bottom: 8px;
    color: #1E3A5F;
    font-weight: 600;
    font-size: 16px;
}

.calculator-row input,
.calculator-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid #E8DCC8;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.calculator-row input:focus,
.calculator-row select:focus {
    outline: none;
    border-color: #C5A572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.calculation-result {
    background: #E8DCC8;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #C5A572;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #1E3A5F;
    font-size: 16px;
}

.calc-row.total {
    border-top: 2px solid #1E3A5F;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 24px;
}

.btn-calculate {
    display: block;
    width: 100%;
    background: #C5A572;
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s;
}

.btn-calculate:hover {
    background: #b89556;
    transform: translateY(-2px);
}

/* Impact Stories */
.impact-stories {
    padding: 60px 20px;
    background: #f8f9fa;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.quote-mark {
    font-size: 60px;
    color: #C5A572;
    line-height: 1;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.story-text {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.story-author {
    color: #1E3A5F;
    font-weight: 600;
    text-align: right;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #C5A572;
}

.faq-item h3 {
    color: #1E3A5F;
    margin-bottom: 12px;
    font-size: 18px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    border-bottom-color: #C5A572;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #E8DCC8;
}

.btn-cta {
    display: inline-block;
    background: #C5A572;
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #b89556;
}

/* Footer */
.footer {
    background: #1E3A5F;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #C5A572;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col a {
    display: block;
    color: #E8DCC8;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #C5A572;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 220, 200, 0.3);
    color: #E8DCC8;
}

/* ============================================
   CHECKOUT PAGE (sponsor-checkout.html)
   ============================================ */

.checkout-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.checkout-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 4px solid #C5A572;
}

.checkout-header h1 {
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: #C5A572;
    transform: scale(1.15);
}

.progress-step .step-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: white;
    font-weight: 600;
}

.checkout-content {
    padding: 40px;
}

.checkout-step {
    display: none;
}

.checkout-step:not(.hidden) {
    display: block;
}

.checkout-step h2 {
    color: #1E3A5F;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 3px solid #C5A572;
    padding-bottom: 12px;
}

/* Allocation Options */
.allocation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.allocation-card {
    background: white;
    border: 3px solid #E8DCC8;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.allocation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #C5A572;
}

.allocation-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.allocation-card h3 {
    color: #1E3A5F;
    font-size: 24px;
    margin-bottom: 15px;
}

.allocation-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-allocation {
    background: #1E3A5F;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-allocation:hover {
    background: #2a5298;
    transform: scale(1.05);
}

/* Church Selection */
.church-search {
    margin-bottom: 20px;
}

.church-search input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E8DCC8;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.church-search input:focus {
    outline: none;
    border-color: #C5A572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.selected-churches-summary {
    background: #E8DCC8;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #1E3A5F;
    font-weight: 600;
    text-align: center;
}

.churches-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #E8DCC8;
    border-radius: 8px;
    padding: 20px;
}

.church-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.church-card:hover {
    background: #E8DCC8;
}

.church-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #C5A572;
}

.church-card label {
    flex: 1;
    cursor: pointer;
}

.church-name {
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 5px;
}

.church-location {
    color: #666;
    font-size: 14px;
}

.church-code {
    color: #C5A572;
    font-size: 12px;
    margin-top: 3px;
}

.loading, .no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Form Styling */
.sponsor-form, .amount-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1E3A5F;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E8DCC8;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C5A572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.char-count {
    text-align: right;
}

/* Amount Summary */
.amount-summary {
    background: #E8DCC8;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #C5A572;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #1E3A5F;
    font-size: 16px;
}

.summary-row.total {
    border-top: 2px solid #1E3A5F;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 24px;
}

/* Payment Summary */
.payment-summary-box {
    background: #f8f9fa;
    border: 2px solid #E8DCC8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.payment-summary-box h3 {
    color: #1E3A5F;
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-detail {
    padding: 10px 0;
    border-bottom: 1px solid #E8DCC8;
    color: #333;
}

.summary-detail:last-child {
    border-bottom: none;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    border: 2px solid #E8DCC8;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #C5A572;
}

.payment-option.active {
    border-color: #C5A572;
    background: #E8DCC8;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #1E3A5F;
}

.payment-icon {
    font-size: 24px;
}

.payment-container {
    margin-bottom: 30px;
}

.payment-container.hidden {
    display: none;
}

#payment-element {
    margin-bottom: 20px;
}

.error-message {
    color: #d32f2f;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    background: #ffebee;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.secure-notice {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-back, .btn-next, .btn-submit {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back {
    background: #f8f9fa;
    color: #1E3A5F;
    border: 2px solid #E8DCC8;
}

.btn-back:hover {
    background: #E8DCC8;
}

.btn-next, .btn-submit {
    background: #C5A572;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background: #b89556;
    transform: translateY(-2px);
}

.btn-next:disabled, .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
}

/* ============================================
   SUCCESS PAGE (sponsor-success.html)
   ============================================ */

.success-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.success-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 100%);
    padding: 60px 30px;
    text-align: center;
    border-bottom: 4px solid #C5A572;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
}

.success-header p {
    color: #E8DCC8;
    font-size: 18px;
}

.success-content {
    padding: 40px;
}

.success-box {
    background: #E8DCC8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #C5A572;
}

.success-box h2 {
    color: #1E3A5F;
    margin-bottom: 20px;
    font-size: 24px;
}

.success-detail {
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    color: #1E3A5F;
}

.success-detail:last-child {
    border-bottom: none;
}

.next-steps {
    margin-top: 30px;
}

.next-steps h3 {
    color: #1E3A5F;
    margin-bottom: 15px;
    font-size: 20px;
}

.next-steps ul {
    list-style: none;
    padding-left: 0;
}

.next-steps ul li {
    padding: 12px 0;
    color: #333;
    border-bottom: 1px solid #E8DCC8;
}

.next-steps ul li:before {
    content: "✓ ";
    color: #C5A572;
    font-weight: bold;
    margin-right: 10px;
}

.btn-success {
    display: inline-block;
    background: #C5A572;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-success:hover {
    background: #b89556;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .stats-grid,
    .steps-grid,
    .options-grid,
    .features-grid,
    .stories-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        padding: 20px;
    }

    .progress-bar {
        gap: 5px;
    }

    .progress-step .step-label {
        font-size: 10px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }

    .btn-back, .btn-next, .btn-submit {
        width: 100%;
    }
}
