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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* Header */
.checkout-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.checkout-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.checkout-header p {
    font-size: 16px;
    opacity: 0.95;
}

/* Benefits Summary */
.benefits-summary {
    padding: 35px 20px;
    background: #f0fff4;
}

.benefits-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2f855a;
    text-align: center;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.check {
    color: #38a169;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.price-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 8px;
}

.price-subtext {
    font-size: 14px;
    opacity: 0.9;
}

/* Checkout Form */
.checkout-form {
    padding: 40px 20px;
}

.checkout-form h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 15px;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input.error {
    border-color: #fc8181;
}

.error-message {
    display: block;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.field-hint {
    display: block;
    color: #718096;
    font-size: 13px;
    margin-top: 6px;
}

/* Terms */
.terms {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: #4a5568;
}

/* Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    margin-bottom: 20px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Trust Signals */
.trust-signals {
    padding: 40px 20px;
    background: #f7fafc;
}

.trust-signals h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 25px;
    color: #2d3748;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.trust-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #2d3748;
}

.trust-item p {
    font-size: 14px;
    color: #718096;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 35px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
    opacity: 0.85;
}

.footer-description {
    opacity: 0.7;
    font-style: italic;
    font-size: 12px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.footer-links h4 {
    margin-bottom: 0;
    white-space: nowrap;
}

.footer-links p {
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.75;
    line-height: 1.5;
}

.footer-legal {
    font-size: 11px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    footer {
        padding: 25px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .footer-links h4 {
        margin-bottom: 8px;
    }
}

/* Responsive */
@media (min-width: 768px) {
    body {
        padding: 40px 0;
    }

    .checkout-header h1 {
        font-size: 32px;
    }

    .price {
        font-size: 56px;
    }

    .submit-button {
        font-size: 20px;
        padding: 20px 28px;
    }
}
