body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    padding: 16px;
    position: relative;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

/* Checkout Step 2 Styles */
.checkout-header {
    background: #FD4522;
    color: white;
    padding: 16px 8px;
    text-align: center;
    position: sticky;
    top: 0;
    margin: -16px -16px 20px -16px;
    z-index: 1000;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checkout-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#timer {
    color: #FFE600;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.order-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-item img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
    object-fit: contain;
    background: white;
    padding: 4px;
}

.order-item-info {
    flex-grow: 1;
}

.order-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}


.order-item-quantity {
    color: #FD4522;
    font-weight: 600;
    font-size: 14px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 2px solid #FD4522;
    display: inline-block;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #FD4522;
    background: white;
    box-shadow: 0 0 0 3px rgba(253, 69, 34, 0.1);
    transform: translateY(-1px);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.delivery-option {
    margin-bottom: 20px;
}

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

.delivery-label {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e5f0ff, #f0f3ff);
    border: 2px solid #4285f4;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.delivery-label:hover {
    background: linear-gradient(135deg, #dde9ff, #eaeeff);
}

.custom-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff7a00;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
}

.custom-radio:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.delivery-option-content {
    flex-grow: 1;
}

.delivery-option-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    line-height: 1.2;
}

.delivery-option-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.delivery-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-left: 15px;
}

.payment-method {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #4caf50;
    margin-bottom: 18px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.payment-method input[type="radio"] {
    position: absolute;
    top: 20px;
    left: 20px;
    transform: scale(1.2);
}

.payment-method-content {
    margin-left: 40px;
    display: flex;
    align-items: center;
    height: 100%;
}

.payment-method h4 {
    margin: 0;
    color: #2e7d32;
    font-weight: 700;
    font-size: 16px;
}

.payment-method p {
    margin: 0;
    color: #666;
    font-size: 14px;
}


.insurance-option {
    border: 3px dashed #FD4522;
    border-radius: 15px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.insurance-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #4a90e2;
    cursor: pointer;
    flex-shrink: 0;
}

.insurance-header label {
    flex-grow: 1;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.insurance-price {
    font-weight: 700;
    color: #333;
    font-size: 18px;
    margin-left: 15px;
    flex-shrink: 0;
}

.insurance-body {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.insurance-body img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.insurance-text {
    flex-grow: 1;
}

.insurance-text h4 {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #333;
    font-size: 18px;
    line-height: 1.3;
}

.insurance-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.order-totals {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.total-row.final {
    border-top: 3px solid #FD4522;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #FD4522;
}

.final-btn {
    background: #FD4522;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

/* PIX Payment Styles */
.pix-payment-section {
    padding: 20px;
}

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

.pix-instructions h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.pix-instructions p {
    color: #666;
    font-size: 14px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 160px;
}

.qr-code-container canvas,
.qr-code-container img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
}

.pix-code-container {
    margin: 20px 0;
}

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

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

.pix-code-input input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    font-family: monospace;
}

.copy-btn {
    background: #FD4522;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

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

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

.info-row span:first-child {
    font-weight: 600;
    color: #333;
}

.info-row span:last-child {
    color: #666;
}

.status-pending {
    color: #ffc107 !important;
    font-weight: 600 !important;
}


.loading-payment {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-payment i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #007bff;
}

.loading-payment p {
    font-size: 18px;
    font-weight: 500;
}

.pix-banner {
    text-align: center;
    margin: -20px -20px 20px -20px;
    padding: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    
    .checkout-header {
        margin: -10px -10px 15px -10px;
        padding: 15px 8px;
    }
    
    .checkout-header h2 {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }
    
    /* Resumo do pedido mais compacto */
    .order-summary {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .order-summary h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .order-item {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .order-item img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .order-item-info h4 {
        font-size: 14px;
    }
    
    
    /* Seções de formulário mais compactas */
    .form-section {
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 4px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .form-row {
        gap: 8px;
    }
    
    /* Opções de entrega mais compactas */
    .delivery-label {
        padding: 12px;
        border-radius: 6px;
    }
    
    .delivery-option-content h4 {
        font-size: 14px;
    }
    
    .delivery-option-content p {
        font-size: 12px;
    }
    
    .delivery-price {
        font-size: 14px;
        margin-left: 8px;
    }
    
    /* Método de pagamento mais compacto */
    .payment-method {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }
    
    .payment-method input[type="radio"] {
        position: static;
        transform: none;
        margin-right: 12px;
    }
    
    .payment-method-content {
        margin-left: 0;
        display: flex;
        align-items: center;
        height: auto;
    }
    
    .payment-method h4 {
        font-size: 14px;
        margin: 0;
    }
    
    
    /* Seguro mais compacto */
    .insurance-option {
        margin-bottom: 12px;
        border-width: 2px;
        border-radius: 8px;
    }
    
    .insurance-header {
        padding: 8px 10px;
    }
    
    .insurance-header input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .insurance-header label {
        font-size: 13px;
        font-weight: 600;
    }
    
    .insurance-price {
        font-size: 13px;
    }
    
    .insurance-body {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .insurance-body img {
        width: 50px;
        height: 50px;
    }
    
    .insurance-text h4 {
        font-size: 12px;
        margin: 0 0 4px 0;
    }
    
    .insurance-text p {
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* Totais mais compactos */
    .order-totals {
        padding: 15px;
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .total-row {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .total-row.final {
        font-size: 18px;
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .final-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    /* PIX Payment mais compacto */
    .pix-payment-section {
        padding: 10px;
    }
    
    .pix-banner {
        margin: -10px -10px 15px -10px;
    }
    
    .pix-instructions {
        margin-bottom: 20px;
    }
    
    .pix-instructions h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .pix-instructions p {
        font-size: 12px;
    }
    
    .qr-code-container {
        margin: 20px 0;
        padding: 15px;
        border-radius: 8px;
        min-height: 150px;
    }
    
    .pix-code-container {
        margin: 15px 0;
    }
    
    .pix-code-container label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .pix-code-input {
        gap: 8px;
    }
    
    .pix-code-input input {
        padding: 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .copy-btn {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .payment-info {
        padding: 12px;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .info-row {
        padding: 6px 0;
        font-size: 14px;
    }
    
    .loading-payment {
        padding: 40px 15px;
    }
    
    .loading-payment i {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .loading-payment p {
        font-size: 16px;
    }
    
}

/* Estilos para validação de formulários */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.error-field {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.error-field:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/*
==============================
6. Testimonials
==============================
*/

.testimonials-container {
    margin: 0;
    padding: 15px;
    border: 2px solid #FD4522;
    border-radius: 12px;
    background: #fef9f7;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.testimonials hr {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
    opacity: 0.5;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.testimonial-content {
    margin-left: 15px;
}

.testimonial img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial .stars {
    color: #f39c12;
    margin-bottom: 3px;
    font-size: 12px;
}

.testimonial strong {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    font-size: 13px;
}

.testimonial p {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .testimonial {
        padding: 8px;
        margin-bottom: 5px;
    }

    .testimonial-content {
        margin-left: 10px;
    }

    .testimonial img {
        width: 40px;
        height: 40px;
    }

    .testimonial strong {
        font-size: 12px;
    }

    .testimonial p {
        font-size: 11px;
    }
}
