/* Reservas de Cuca - Frontend Styles */

.reservas-cuca-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reservas-cuca-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.reservas-cuca-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.flavor-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.flavor-item:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flavor-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flavor-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

.flavor-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

.flavor-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.flavor-price {
    font-weight: 600;
    color: #007cba;
    font-size: 1.1em;
}

.flavor-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.flavor-quantity label {
    font-weight: 500;
    color: #495057;
    margin: 0;
    min-width: 80px;
}

.flavor-quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    color: #495057;
}

.flavor-quantity-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.flavor-quantity-input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.total-section label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#order-total {
    font-size: 20px;
    font-weight: 700;
    color: #007cba;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #005a87;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-messages {
    margin-top: 20px;
}

.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* PIX Payment Styles */
.reservas-cuca-pix-payment {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.reservas-cuca-pix-payment h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.pix-qr-container {
    text-align: center;
    margin-bottom: 20px;
}

.pix-qr-code {
    max-width: 200px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.pix-instructions {
    margin-bottom: 20px;
}

.pix-instructions ol {
    margin-left: 20px;
    line-height: 1.6;
}

.pix-code-text {
    margin-top: 15px;
}

.pix-code-textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 10px;
}

.copy-pix-code {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.copy-pix-code:hover {
    background-color: #218838;
}

.pix-status {
    text-align: center;
    margin-top: 20px;
}

.payment-status {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-status.pending {
    color: #f39c12;
}

.payment-status.paid {
    color: #27ae60;
}

.payment-timer {
    font-size: 14px;
    color: #666;
}

.timer {
    font-weight: 600;
    color: #e74c3c;
}

/* Order Confirmation Styles */
.reservas-cuca-confirmation {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.confirmation-header h2 {
    color: #007cba;
    margin-bottom: 10px;
}

.order-number {
    font-size: 1.1em;
    color: #333;
}

.order-details {
    margin-bottom: 30px;
}

.order-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-summary td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.order-summary td:first-child {
    font-weight: 600;
    width: 40%;
}

.order-flavors {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.order-flavors h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.order-flavors ul {
    margin: 0;
    padding-left: 20px;
}

.order-flavors li {
    margin-bottom: 5px;
    color: #555;
}

.payment-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.confirmation-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.confirmation-footer .button {
    display: inline-block;
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    margin-top: 10px;
}

.confirmation-footer .button:hover {
    background: #005a87;
}

/* Error Styles */
.reservas-cuca-error {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.reservas-cuca-error h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.reservas-cuca-error p {
    color: #666;
    margin-bottom: 20px;
}

.try-again {
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.try-again:hover {
    background-color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reservas-cuca-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
    }
    
    .flavor-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .total-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .reservas-cuca-confirmation,
    .reservas-cuca-error {
        margin: 10px;
        padding: 20px;
    }
    
    .order-summary td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .order-summary td:first-child {
        width: 100%;
        font-weight: 600;
        background-color: #f8f9fa;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    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 #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 