/* ============================================
   Continental Who's Who - Payment Portal
   Matching main site branding (continentalwhoswho.com)
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    /* Primary Colors - matching main site */
    --primary-navy: #1a1f3c;
    --primary-dark: #0d1127;
    --primary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --accent-gold: #c9a227;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #1a1f3c;

    /* UI Colors */
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --success-green: #10b981;
    --error-red: #ef4444;
    --warning-yellow: #f59e0b;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Dark Navy like main site */
.header {
    background: var(--primary-navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-white);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.85;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Main Content Area */
.main-content {
    padding: 50px 0;
    min-height: calc(100vh - 180px);
    background: var(--bg-light);
}

/* Cards - White with subtle shadow like main site */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    background: var(--primary-navy);
    padding: 28px 35px;
    border-bottom: none;
}

.card-header h1,
.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
}

.card-header .subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 6px;
}

.card-body {
    padding: 40px;
    background: var(--bg-white);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid.single-column {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label .required {
    color: var(--error-red);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 45px;
}

select.form-control option {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 10px;
}

/* Form Section Dividers */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

/* Payment Method Selection */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.payment-method-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.payment-method-label img {
    height: 28px;
    width: auto;
}

.payment-method-label span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Amount Display */
.amount-display {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3158 100%);
    padding: 22px 28px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amount-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.amount-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
}

.amount-input {
    width: 120px;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 8px 12px;
}

.amount-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--text-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-navy);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--border-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* Confirmation Table */
.confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.confirmation-table tr {
    border-bottom: 1px solid var(--border-color);
}

.confirmation-table tr:last-child {
    border-bottom: none;
}

.confirmation-table td {
    padding: 14px 0;
}

.confirmation-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
}

.confirmation-table td:last-child {
    color: var(--text-dark);
    font-weight: 400;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-green);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-red);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-yellow);
    color: #92400e;
}

.alert-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Terms Checkbox */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
    padding: 18px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-navy);
    cursor: pointer;
}

.terms-agreement label {
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
}

.terms-agreement a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Security Badges */
.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.security-badge svg {
    width: 18px;
    height: 18px;
    color: var(--success-green);
}

/* Footer - Dark like main site */
.footer {
    background: var(--primary-dark);
    padding: 40px 0 30px;
    text-align: center;
}

.footer-content {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 18px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        justify-content: center;
    }

    .card-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .card-header {
        padding: 22px 20px;
    }

    .card-body {
        padding: 25px 20px;
    }

    .amount-display {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .security-badges {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nav a {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .page-title h1 {
        font-size: 1.75rem;
    }

    .card-header h1,
    .card-header h2 {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.4s ease-out;
}

/* Credit Card Icons */
.cc-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cc-icons img {
    height: 26px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.cc-icons img:hover {
    opacity: 1;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Experience Badge */
.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.experience-badge svg {
    color: var(--accent-gold);
}

.experience-badge strong {
    color: var(--primary-navy);
}

/* Static page styles - Light theme matching main site */
.static-content {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.static-content h1 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 15px;
}

.static-content h2 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--primary-navy);
}

.static-content p {
    margin-bottom: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.static-content ul {
    margin: 14px 0;
    padding-left: 22px;
}

.static-content li {
    margin-bottom: 8px;
    color: var(--text-gray);
    line-height: 1.6;
}

.static-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.static-content a:hover {
    text-decoration: underline;
}

.static-content section {
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-item-content h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Hero Section Style (if needed) */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3158 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-banner p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Process Steps (matching main site membership process) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.process-step {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.process-step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-navy);
}

.process-step h3 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Newsletter/CTA Section */
.cta-section {
    background: var(--primary-navy);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-indicator {
    text-align: center;
}

.trust-indicator .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.trust-indicator .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-indicators {
        flex-direction: column;
        gap: 20px;
    }

    .static-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Confirmation Page Styles
   ============================================ */

.confirmation-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

.confirmation-section {
    padding: 28px 35px;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-section:last-of-type {
    border-bottom: none;
}

.confirmation-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.confirmation-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.confirmation-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 130px;
}

.confirmation-value {
    color: var(--text-dark);
    text-align: right;
    font-size: 0.95rem;
}

.amount-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3158 100%);
}

.amount-section .confirmation-row {
    padding: 10px 0;
}

.total-row .confirmation-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

.total-row .confirmation-value {
    color: var(--text-white);
}

.amount-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.confirmation-actions {
    padding: 28px 35px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.paypal-button {
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.paypal-button:hover {
    transform: scale(1.02);
}

/* ============================================
   Transaction Result Page Styles
   ============================================ */

.result-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 550px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.result-icon {
    margin-bottom: 25px;
}

.result-success .result-icon {
    color: var(--success-green);
}

.result-error .result-icon {
    color: var(--error-red);
}

.result-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.result-success .result-title {
    color: var(--success-green);
}

.result-error .result-title {
    color: var(--error-red);
}

.result-message {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.transaction-details {
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    padding: 22px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.transaction-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transaction-id {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 10px;
}

.transaction-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .confirmation-card,
    .result-card {
        margin: 0 15px;
    }

    .confirmation-section {
        padding: 22px 20px;
    }

    .confirmation-actions {
        padding: 22px 20px;
    }

    .confirmation-row {
        flex-direction: column;
        gap: 4px;
    }

    .confirmation-value {
        text-align: left;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .result-card {
        padding: 35px 25px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }
}
