/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 48px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Main Content */
.content {
    padding: 40px 30px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h2 i {
    font-size: 24px;
}

/* Client Info */
.client-info .info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #555;
}

.info-row .value {
    font-weight: 500;
    color: #1e3c72;
    font-size: 18px;
}

/* Service Info */
.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-description {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Payment Section */
.payment-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 30px;
}

#qrcode {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-instruction {
    margin-top: 15px;
    color: #555;
    font-size: 14px;
}

/* PIX Code Section */
.pix-code-section h3 {
    color: #1e3c72;
    font-size: 18px;
    margin-bottom: 15px;
}

.pix-code-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#pixCode {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: white;
    word-break: break-all;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-message {
    color: #28a745;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.copy-message.show {
    opacity: 1;
}

/* Instructions */
.instruction-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.instruction-card.alert {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.instruction-card h3 {
    color: #1e3c72;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-card ol,
.instruction-card ul {
    margin-left: 20px;
}

.instruction-card li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* Contact */
.contact-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.contact-card p {
    margin-bottom: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p i {
    color: #667eea;
    width: 20px;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.security-note {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo i {
        font-size: 36px;
    }

    .content {
        padding: 30px 20px;
    }

    section h2 {
        font-size: 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pix-code-wrapper {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    #pixCode {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    section h2 {
        font-size: 18px;
    }

    .instruction-card h3 {
        font-size: 16px;
    }
}
