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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header Banner */
.header-banner {
    background: linear-gradient(135deg, #e67e22 0%, #27ae60 50%, #2c3e50 100%);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.banner-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.banner-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cta-subtext {
    font-size: 1rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Payment Section */
.payment-section {
    background: white;
    border-radius: 12px;
    padding: 0;
}

.country-selector {
    margin-bottom: 20px;
    text-align: right;
}

.country-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s;
}

.country-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.country-btn img {
    width: 20px;
    height: auto;
}

/* Form Styles */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group.error input {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    position: absolute;
    right: 0;
    top: 0;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input select {
    flex: 0 0 100px;
}

.phone-input input {
    flex: 1;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.payment-method:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.payment-method.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.method-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.payment-method span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* PIX Info */
.pix-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.pix-info h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
}

.pix-info ul {
    list-style: none;
    padding: 0;
}

.pix-info li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pix-info li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Card Info */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Security Info */
.security-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
}

.security-icon {
    font-size: 18px;
    color: #28a745;
}

/* Pay Button */
.pay-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.pay-button:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pay-button:active {
    transform: translateY(0);
}

/* Terms */
.terms {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
    text-align: center;
}

.terms a {
    color: #007bff;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Course Info Sidebar */
.course-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.timer-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.time {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timer-label {
    font-size: 14px;
    opacity: 0.9;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.info-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.info-card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    color: #495057;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 30px;
}

.pix-instructions {
    margin-bottom: 30px;
}

.pix-instructions h3 {
    margin-bottom: 15px;
    color: #495057;
}

.pix-instructions ol {
    padding-left: 20px;
}

.pix-instructions li {
    margin-bottom: 8px;
    color: #6c757d;
}

.pix-payment {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pix-code {
    width: 100%;
}

.pix-code label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.code-container {
    display: flex;
    gap: 10px;
}

.code-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    background: #f8f9fa;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

.payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
}

.payment-info p {
    margin-bottom: 8px;
    color: #495057;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.report-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
}

.report-btn:hover {
    color: #495057;
    text-decoration: underline;
}

.recaptcha-info {
    font-size: 12px;
    color: #6c757d;
}

.recaptcha-info a {
    color: #007bff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .course-info {
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .code-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .phone-input select {
        flex: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}

.payment-method {
    transition: all 0.2s ease;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

